init
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user