I would like to know the difference between ChartBars.ToIndex and CurrentBar.
I dont understand why doing:
for(int barIndex = (mybar - Period); barIndex <= CurrentBar; barIndex++)
for(int barIndex = (mybar - Period); barIndex <= [LEFT][COLOR=#4D4D4D][FONT=Helvetica][SIZE=13px]ChartBars.ToIndex [/SIZE][/FONT][/COLOR][/LEFT]; barIndex++)
So why replacing by CurrentBar has a different impact?
Ty
Comment