Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Simple MACD - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Simple MACD - expert for MetaTrader 5

Simple MACD - expert for MetaTrader 5

Simple MACD - expert for MetaTrader 5

Simple MACD - expert for MetaTrader 5

Trade only on new bars. The trading rule is simple - on the new bar, compare the values ​​of the main lines on bar (1) and bar (2):

If MAIN_LINE MACD (1) > MAIN_LINE MACD (2) -> Buy,

If MAIN_LINE MACD (1) < MAIN_LINE MACD (2) -> Sell.

Close all positions when receiving a signal opposite to opening a position.

This code can be seen as a test of the theory: if MACD is greater than its previous value, we can buy. As you can see, this form of theory is a complete failure. It requires additional filters and location protection.


Attachment download

📎 simple_macd.mq5 (18.76 KB)

Source: MQL5 #17425

Verification code Refresh