MACD EA Explanation
Nevermind. The rules of the MACD Sample are based on the crossing of the signal line.
Does anybody know how to calculate the number of bars above MACD 0? The system that I am coding enters after 2 bars have formed above the 0 line.
Nevermind. MacdEntry=iMACD(NULL,0,MACDFast,MACDSlow,MACDSignal,PRICE_CLOSE,MODE_MAIN,2);
i m new can u told me what is this thanks
From the MACD Sample EA:
// check for long position (BUY) possibility
if(MacdCurrent<0 && MacdCurrent>SignalCurrent && MacdPrevious<SignalPrevious &&
MathAbs(MacdCurrent)>(MACDOpenLevel*Point) && MaCurrent>MaPrevious)
Shouldn't MACD be ABOVE 0 for a long signal?