View Single Post
  #11 (permalink)  
Old 02-28-2006, 04:18 PM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
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!
Reply With Quote