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

Using Moving Averages with EA (Example Source Code) - MetaTrader 4 Expert - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Using Moving Averages with an EA (Sample Source Code) - expert for MetaTrader 4

Using Moving Averages with an EA (Sample Source Code) - expert for MetaTrader 4

Long entry: We will open a long position on Golden Cross.

If these three conditions are met, we consider it a golden cross and enter a long position.

Short Entry: We will enter a short position on the dead cross.

If these three conditions are met, we consider it a dead cross and enter a short position.

Pending orders are managed only through stop-loss orders and take-profit limit orders.

The stop loss point is set at a distance from the mid-term MA stop loss value.

Take profit limit orders are set at the same distance as stop loss orders, but have a positive side and also serve fairness.


Attachment download

📎ea_-_moving_average.mq4 (11.68 KB)

Source: MQL5 #46426

Using Moving Averages with EA (Sample Source Code) - MetaTrader 4 Expert Usage and Screening Advice

Using Moving Averages with EA (Example Source Code) - MetaTrader 4 Expert belongs to the golden EA related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.

Verification code Refresh