DislikedIt is one of my logic thingy's. Do me a favour, whip, and add the code snippet into the function on your 4 digit crim and recompile, to see if the display is correct now - I have highlighted the bit.
Cheers
[code]double CalculateVolatility(int period, int LookBack)
{
//Calculates the volatility of a pair based on an average of their movement over LookBack periods
double pips;
for (int cc = 1; cc < LookBack; cc++)
{
pips+= iHigh(NULL, period, cc) - iLow(NULL, period, cc);
}//for (int cc = 1; cc < LookBack; cc++)...Ignored
It agrees with my 5 digit crook now pair for pair!!!
whip
P.S====My 5 digit crook has a 2 digit JPY pair that still has a Vol of 2 digits.....Want to try it on the 5 digit crook????