Indicator calculation backwards New comment sunshineh 2010.12.23 09:26 Hello, I want to draw an old saved value on indicator, therefore I have to calculate the indicator-loop backwards and not as normal: for(i=0;i<limit;i++) I tried it like that for(i=limit;i<0;i--) but it doesn't work. Any idea?? Thank you! doesn't re-calculate past formed bars [Archive] Learn how to make money villagers! Query Account Balance at some point in the past (eg. yesterday 5pm EST) qjol 2010.12.23 09:48 #1 for(i=limit;i>0;i--) sunshineh 2010.12.23 11:06 #2 Thank you, but it doesn't work. I want to programm something like that: for(i=limit,y=0;i>0;i--) { if (Time[i]<TimeArray[y]) y++; double value0 =iCustom(NULL,TimeFrame,"BBands Stops",Length,Deviation,MoneyRisk,Signal,Line,Nbars,0,y); ... } Can you see the mistake? New comment
Hello,
I want to draw an old saved value on indicator,
therefore I have to calculate the indicator-loop backwards and not as normal:
for(i=0;i<limit;i++)
I tried it like that
for(i=limit;i<0;i--)
but it doesn't work.
Any idea??
Thank you!