Forums ProRealTime English forum ProOrder support barindex trouble Reply To: barindex trouble

#54893

 If ther’s room for some more questions here: 

if intradaybarindex=0 then
trading=1

What exactly does that mean? I dont understand the barindex command at all.

 
In general the “If barindex = 0 then…” command, what does it mean? i dont get why so many people use it. Would love to understand 🙂

how would you rewrite my code in post 1, to make it actually trade if the close[0] > highest high in past 20 candles?