EMA on MACD, how? New comment Erman Ardianto 2008.07.28 21:10 Hello, I'm trying to calculate the EMA of the MACD histogram. But the return value seems incorrect. Is there any mistake in my codes? Below I'm trying to get EMA 21 of the default MACD histogram. double mcd[100]; int EMA_MACD=21; for(int d=0;d<=100;d++) { mcd[d]=iMACD(Symbol(),0,12,26,9,PRICE_CLOSE,MODE_MAIN,d); } double emacd1=iMAOnArray(mcd,EMA_MACD,EMA_MACD,0,MODE_EMA,1); double emacd2=iMAOnArray(mcd,EMA_MACD,EMA_MACD,0,MODE_EMA,2); Thank you, Ardi how do i get macd signals for my ea How to Get Histogram from MACD and Signal lines? MACD indicator Ray 2008.07.28 21:18 #1 Use ArraySetAsSeries() Erman Ardianto 2008.07.29 23:35 #2 Hi Phy, You're the man!! Thanks New comment
Hello,
I'm trying to calculate the EMA of the MACD histogram. But the return value seems incorrect.
Is there any mistake in my codes? Below I'm trying to get EMA 21 of the default MACD histogram.
Thank you,
Ardi