Quote:
|
Originally Posted by nohills
Hi Nic,
Appreciate your work.
I think there is 1 error in this script:
for (int i=0;i<=PeriodsBack;i++)
must be:
for (int i=0;i<PeriodsBack;i++)
In your example it will go 11 times through the for loop
|
Thanks for the catch nohills. What i meant to do was:
for (int
i=1;i<=PeriodsBack;i++)
I didn't want to take the current bar into calculation. Thanks!