Download MetaTrader 5

NormalizeDouble, do I need it for iMACD

To add comments, please log in or register
Harry
267
Harry  

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))
Simon Gniadkowski
Moderator
18003
Simon Gniadkowski  
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()
Harry
267
Harry  

Thanks you, RaptorUK.

SCFX

To add comments, please log in or register