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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?