Message from Python discussions

December 2018

— Right?

— 

    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

— Have you tried printing hslows and checkinh what it contains?

— It contains nothing

— Lol

— Why

— Just [ ]

— Yep

— Yes

— Zip probably returns a generator

— Turn that to a list

— But in the hshighs it works good