This commit is contained in:
dosangyoon
2021-11-20 09:52:58 +09:00
parent 5686bf525d
commit 8cd59be194
2 changed files with 9 additions and 7 deletions

View File

@@ -386,9 +386,10 @@ class Analyzer:
for i in range(1, 260):
if i > len(stock) or not stock[-i]:
break
if top < stock[-i]["close"]:
top = stock[-i]["close"]
if bottom > stock[-i]["close"]:
bottom = stock[-i]["close"]
energy = round(bottom / top, 2)