Experts: SAR_MACD_EA

 

SAR_MACD_EA:

Macd is the first to indicate bearish or bullish direction, secondly SAR in correlation with price indicates a swing in direction (Sar Flip above or below price), third conformation is the sma 40 shifted 3 and the closed price above or below the sma.

SAR_MACD_EA

Author: Jakobus Botes

 
On which Instruments did u thought about using that EA?
I tired on EURUSD M15 but its doing nothing.
thanks
greetings!
 
No work... enaugh trading open..
 
The strategy is great, but the code is written incorrectly. Many positions are not opened, although the signal is good.
 

The following directive:

#property strict

is used incorrectly.

For starters... In the "New" MQL4 language with #property strict, "Functions of any type should return a value".

If #property strict has merely been added to satisfy the CodeBase code validator without editing the rest of the code, that is obviously not the way to go.

As a side note, there appears to be a typographical error in the 2nd image posted--where the MACD buy status should confirm "bullish" rather than "bearish."

Updated MQL4 - Language Basics - MQL4 Reference
Updated MQL4 - Language Basics - MQL4 Reference
  • docs.mql4.com
Updated MQL4 - Language Basics - MQL4 Reference