Message from Python discussions

December 2018

— Ok

— 

    hsopens = []
hscloses = []
hshighs = []
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]

— Yup

— It seems to work, what do you think

— Seems good, will test it using chart and see if matches

— Really excited to get this working lol

— But
if i > 0]
means that the 0 position will be skiped? right?

— Yes since it has no preceeding value

— And instead it would use the last value of the list since the index would be -1

— So i would need to apply same condition to hshighs?

— In order to be in sync

— Yes