—
hshighslows = zip(opens,closes,highs,lows)
hsopens=[(opens[i-1] + closes[i-1])/2 for i, x in enumerate(opens) if i > 0]
hscloses=[(opens[i] + highs[i] + lows[i] + closes[i])/4 for i, x in enumerate(opens) if i > 0]
hshighs = [max(a) for a in hshighslows]
hslows = [min(a) for a in hshighslows]
I do:
print("_______Heikin Ashi Open_______")
print(hsopens[-1])
print("_______Heikin Ashi Close______")
print(hscloses[-1])
print("_______Heikin Ashi High_______")
print(hshighs[-1])
print("_______Heikin Ashi Low______")
print(hslows[-1])
In the Heikin Ashi low it returns out of range