NormalizeDouble, do I need it for iMACD

 

Hello,

Since I want 7 number after the decimal place, I use NormalizeDouble as below.

My question is that do we really need that, in other words, do MT4/MT5 already store the exact value of iMACD?

Thank you for helping me.

SCFX

if       (NormalizeDouble(iMACD(NULL,D1,5,15,12,0,0,bar_0),7)>NormalizeDouble(iMACD(NULL,D1,5,15,12,0,0,bar_1),7))
 
scfx:

Hello,

Since I want 7 number after the decimal place, I use NormalizeDouble as below.

My question is that do we really need that, in other words, do MT4/MT5 already store the exact value of iMACD?

No you do not need to use NormalizeDouble(). For printing purposes use DoubleToString() or DoubleToStr()
 

Thanks you, RaptorUK.

SCFX

Reason: