This commit is contained in:
dsyoon
2021-07-24 04:23:18 +09:00
parent 6a97e00e16
commit ed791e0b56
2 changed files with 13 additions and 6 deletions

View File

@@ -536,8 +536,8 @@ class Common:
if top - bottom > 0:
energy = (price - bottom) / (top - bottom)
if 0.1 < energy < 0.5:
return "p(" + str(round(energy*100, 1)) + ")_"
if energy < 0.4:
return "p(" + str(round(energy, 2)) + ")_"
return ""