Introduction
The Moving Average Crossover EA uses a dual Moving Average (MA) strategy to identify potential trends and execute trades based on the crossover of two moving averages. The EA is highly customizable, with the ability to adjust various settings for both MAs, such as period, shift, method, and applied price. Additionally, it integrates advanced features like grid recovery, hedge, martingale strategies, position sizing, and day/time filters, offering enhanced adaptability to various market conditions.
You can download the product from here Moving Average Multi Currency EA MT5
Features Overview
Dual Moving Average Strategy
- MA1 and MA2 are used to determine the trend and entry signals.
- Buy signals are generated when the fast MA crosses above the slow MA, and sell signals are generated when the fast MA crosses below the slow MA.
- Both MAs are fully customizable in terms of period, method (Simple, Exponential, etc.), shift, and applied price.
Grid Recovery
- Automatically opens new trades in a grid pattern to recover from drawdowns.
Hedge Strategy
- Opens opposite trades to hedge positions and manage risk.
Martingale Strategy
- Increases position sizes after losing trades in an effort to recover from losses.
Position Sizing
- Customizable position sizing methods, including fixed or dynamic lot sizes based on account equity or profit targets.
Day and Time Filters
- Restrict trading to specific days or times for better control over when the EA operates.
Alerts and Notifications
- Sends alerts via notifications, email, or other means to inform the trader of trade execution and other events.
Input Parameters
Moving Average 1 Settings
- MA1 Timeframe:
The timeframe for calculating the first moving average.
Default: PERIOD_CURRENT . - MA1 Method:
The method used for calculating the first moving average. Options:- MODE_SMA (Simple Moving Average)
- MODE_EMA (Exponential Moving Average)
- MODE_SMMA (Smoothed Moving Average)
- MODE_LWMA (Linear Weighted Moving Average)
Default: MODE_EMA .
- MA1 Period:
The period for calculating the first moving average.
Default: 10 . - MA1 Shift:
The shift for the first moving average line.
Default: 0 . - MA1 Applied Price:
The price type used for the first moving average calculation. Options include:- PRICE_CLOSE
- PRICE_OPEN
- PRICE_HIGH
- PRICE_LOW
Default: PRICE_CLOSE .
Moving Average 2 Settings
- MA2 Timeframe:
The timeframe for calculating the second moving average.
Default: PERIOD_CURRENT . - MA2 Method:
The method used for calculating the second moving average. Options:- MODE_SMA
- MODE_EMA
- MODE_SMMA
- MODE_LWMA
Default: MODE_EMA .
- MA2 Period:
The period for calculating the second moving average.
Default: 30 . - MA2 Shift:
The shift for the second moving average line.
Default: 0 . - MA2 Applied Price:
The price type used for the second moving average calculation. Options include:- PRICE_CLOSE
- PRICE_OPEN
- PRICE_HIGH
- PRICE_LOW
Default: PRICE_CLOSE .
Entry and Exit Strategy
- Buy Signal:
Generated when the fast MA (MA1) crosses above the slow MA (MA2). - Sell Signal:
Generated when the fast MA (MA1) crosses below the slow MA (MA2). - Exit Signal:
The EA exits the position when the opposite crossover occurs. - You can find the detailed description for the different strategies here
Additional Features
For further details about additional features like grid recovery, hedge strategy, martingale strategy, and position sizing, refer to the documentation link included in the EA inputs.
How It Works
- The EA calculates the two MAs using the user-defined parameters (timeframe, period, method, etc.).
- A buy signal is generated when the fast MA crosses above the slow MA, and a sell signal is generated when the fast MA crosses below the slow MA.
- The EA opens positions based on the crossover strategy and exits when the opposite crossover occurs.
- Additional strategies like grid recovery, hedge, and martingale are available for managing trades and mitigating risk.
- The EA can be customized to limit trading based on day or time filters.