current macd value ( not candle close -- Live value )

 
Can anyone please help me to get the live macd value in mql4 ? Thanks !
 
Marky Mark: Can anyone please help me to get the live macd value in mql4 ? Thanks !

What is "Live value" for you?

If it is the current Bid price, then that would be the MACD of the current close price of the current bar.

Current bar, current close = current Bid price!

 
Marky Mark:
Can anyone please help me to get the live macd value in mql4 ? Thanks !

Example:

  

if(iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0)) return(0);