5 decimal places Problem.

 

I'm using Alpari who have just gone to 5 decimal places.


The code:

double slow = iMA(Symbol(),PERIOD_M15,14,0,MODE_SMA,PRICE_CLOSE,0);



Printing the code will produce a number to four decimal places eg 0.8991

But the indicator on the chart prduces number to 5 decimal places 0.089937 which is quite different SEE IMAGE


Mismatch




As you can see the numbers are quite different, but should surely be the same?

All offers of help appreciated.


Pete

 
As a variant

double slow = NormalizeDouble(iMA(Symbol(),PERIOD_M15,14,0,MODE_SMA,PRICE_CLOSE,0),4);

 
Roger:
As a variant

double slow = NormalizeDouble(iMA(Symbol(),PERIOD_M15,14,0,MODE_SMA,PRICE_CLOSE,0),4);

Hi Roger


I tried that but it doesn't work.


Pete

Reason: