Download MetaTrader 5

NormalizeDouble, do I need it for iMACD

To add comments, please log in or register
Harry
267
Harry 2014.02.17 17:25 

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 2014.02.17 17:28  
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 2014.02.18 20:33  

Thanks you, RaptorUK.

SCFX

To add comments, please log in or register