Another 'Expert Advisor Sample' question New comment [Deleted] 2007.08.16 20:45 In the code below taken from the 'Expert Advisor Sample' post on this forum: -- Buy if(MacdCurrent<0 && MacdCurrent>SignalCurrent && MacdPrevious<SignalPrevious && MathAbs(MacdCurrent)>(MACDOpenLevel*Point) && MaCurrent>MaPrevious) -- Sell if(MacdCurrent>0 && MacdCurrent<SignalCurrent && MacdPrevious>SignalPrevious && MacdCurrent>(MACDOpenLevel*Point) && MaCurrent<MaPrevious) What is the significance or purpose of comparing the MACD Main and signal line to each other? I thought the whole point behind MACD was comparing it to the signal line. Thanks in advance, Ed Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes MACD EA Explanation ICHIMOKU STRATEGY New comment
-- Buy
if(MacdCurrent<0 && MacdCurrent>SignalCurrent && MacdPrevious<SignalPrevious &&
MathAbs(MacdCurrent)>(MACDOpenLevel*Point) && MaCurrent>MaPrevious)
-- Sell
if(MacdCurrent>0 && MacdCurrent<SignalCurrent && MacdPrevious>SignalPrevious &&
MacdCurrent>(MACDOpenLevel*Point) && MaCurrent<MaPrevious)
What is the significance or purpose of comparing the MACD Main and signal line to each other? I thought the whole point behind MACD was comparing it to the signal line.
Thanks in advance,
Ed