Thread: How to code?
View Single Post
  #568 (permalink)  
Old 12-13-2007, 10:11 AM
MrPip MrPip is offline
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 560
MrPip is on a distinguished road
Quote:
Originally Posted by nondisclosure007 View Post
you were right. they were there, just waaaaay off. i changed the formula of where to put the arrow. now they all show up.
You also need to reset the avgRange to 0 before the loop.

avgRange = 0;
for (counter=i ;counter<=i+9;counter++)
{
avgRange=avgRange+MathAbs(High[counter]-Low[counter]);
}

Robert
Reply With Quote