Moving Average EA MT4/5 Settings/Inputs Guide

Moving Average EA MT4/5 Settings/Inputs Guide

14 September 2021, 20:51
Juvenille Emperor Limited
0
2 908


✔️ Moving Average EA ΜΤ4©: https://www.mql5.com/en/market/product/45633

✔️ Moving Average EA ΜΤ5©: https://www.mql5.com/en/market/product/47673



Video Guide: How to Set Up Moving Average EA MT4/5 with Provided Set Files - Please Enable Subtitles in this Video!

RECOMMENDATIONS FOR NOVEMBER 2026

For the Moving Average EA MT4/5, my current recommendation is to TRADE ONLY the following (and NOT ALL provided) set files: AUDCAD, AUDUSD, CADJPY, EURCAD, EURGBP, GBPJPY, JP225, NZDUSD, USDCAD, USDJPY with a risk of 0.5% or lower per trade.

You can find the Moving Average EA MT4/5 set files, along with detailed instructions and advice, at the bottom of this guide.



Please Enable Subtitles in this Video!






How the Moving Average EA Generates Trading Signals

The Moving Average EA uses the ColoredMA indicator as its main trading signal.

When the slope of the ColoredMA changes upwards, the indicator turns blue, generating a Buy signal. The EA can then open a Buy trade after the first new blue ColoredMA candle/bar has closed.

When the slope of the ColoredMA changes downwards, the indicator turns red, generating a Sell signal. The EA can then open a Sell trade after the first new red ColoredMA candle/bar has closed.

The Moving Average settings described below—MA Timeframe, MA Period, MA Method, MA Applied Price and MA Shift—define the main ColoredMA that generates these Buy and Sell signals.

The separate MA Filter settings further down do not generate trading signals. When enabled, the MA Filter only confirms or rejects a signal that has already been generated by the main ColoredMA.







Moving Average EA MT4/5 Settings/Inputs Guide

Allow Long: Enables or disables Buy trades. Set to True to allow the EA to open Buy trades, or False to disable them.

Allow Short: Enables or disables Sell trades. Set to True to allow the EA to open Sell trades, or False to disable them.

Minimum Distance for Same Direction Orders in Points: Defines the minimum required distance, in points, between trades opened in the same direction. If you want the EA to open only the first trade after each change in the ColoredMA slope direction, you can enter a sufficiently large value here, greater than the normal price movement of the instrument. If additional same-direction trades are allowed, this setting prevents them from being opened too close to each other.

Stop Same MA Change Trades After Close: If set to True, the EA will stop opening new trades in the same direction after the first trade(s) of the current ColoredMA signal have been closed, regardless of whether they were closed by Take Profit, Stop Loss, Break Even, Trailing Stop Loss, Basket protection, or manually. If set to False, the EA can continue opening trades in the same direction while the current ColoredMA signal remains active.

First Session Trade on Next Signal: Controls when the first trade is opened after attaching the EA to a chart or when a new trading session begins. If set to False (default), the EA can trade the currently active ColoredMA signal. If set to True, the EA will wait for the next opposite ColoredMA signal before opening its first trade. This can help avoid entering too late into an already established or potentially exhausted trend.

Lot Size: Defines the fixed lot size used for trades. If you want every trade to use the same lot size, enter your preferred value here.

Use Risk %: When set to True, the EA calculates the lot size according to the percentage of the account balance you want to risk instead of using the fixed Lot Size setting.

Risk %: Defines the percentage of the account balance to be risked. The lot size is calculated automatically using the Virtual Stop Loss level.

Magic Number: A unique identifier assigned to trades opened by the EA. This helps distinguish Moving Average EA trades from other trades on the same account.

EA Comment: Defines the text that will appear in the Comments section of the Terminal/Toolbox window for trades opened by the Moving Average EA.

Offset in Points: Defines the number of points away from the current price that the EA will wait before opening a new trade. A positive offset allows the EA to wait for a more favorable entry price before executing the trade.

Opposite Logic: When enabled, the EA trades in the opposite direction of the ColoredMA signal. For example, a Sell trade will be opened on a normally generated Buy signal and a Buy trade on a normally generated Sell signal.


Main ColoredMA Settings

The following settings control the main ColoredMA indicator used by the EA to generate Buy and Sell signals.

EA Timeframe: Defines the timeframe on which the EA operates and processes its trading logic.

MA Timeframe: Defines the timeframe of the main ColoredMA used to generate trading signals. This does not necessarily have to be the same as the EA Timeframe.

MA Period: Defines the number of candles/bars used to calculate the main Moving Average. A higher value produces a smoother and slower Moving Average, while a lower value makes it react more quickly to price changes.

MA Method: Defines the Moving Average calculation method used by the main ColoredMA, such as Simple, Exponential, Smoothed or Linear Weighted.

MA Applied Price: Defines the price data used for calculating the main Moving Average, such as Close, Open, High, Low, Median, etc.

MA Shift: Defines the number of candles/bars by which the main Moving Average is shifted on the chart.

Minimum Distance to MA in Points: Defines the minimum vertical distance, in points, that must exist between the current price and the main Moving Average before a trade is allowed to open.

Maximum Distance to MA in Points: Defines the maximum vertical distance, in points, allowed between the current price and the main Moving Average when a trade is about to open.


Moving Average Filter

Use MA Filter: Enables or disables the additional Moving Average filter.

It is important to understand that this Moving Average does not generate the Buy or Sell signal. The trading signal is generated by the main ColoredMA described above. The MA Filter simply checks whether that ColoredMA signal is confirmed by the position of the current price relative to the additional Moving Average.

For example:

If the main ColoredMA changes direction upwards and turns blue, a Buy signal is generated. If the MA Filter is enabled, the EA then checks the current price against the Moving Average Filter:

  • If the current price is above the MA Filter, the Buy signal is confirmed and the EA is allowed to open the Buy trade.

  • If the current price is below the MA Filter, the Buy signal is rejected and the EA skips that trade.

The opposite logic applies to Sell signals:

If the main ColoredMA changes direction downwards and turns red, a Sell signal is generated.

  • If the current price is below the MA Filter, the Sell signal is confirmed and the EA is allowed to open the Sell trade.

  • If the current price is above the MA Filter, the Sell signal is rejected and the EA skips that trade.

Therefore, the ColoredMA determines the direction and timing of the trading signal, while the MA Filter acts only as an additional trend confirmation.

The MA Filter can, for example, be configured with a longer period than the main ColoredMA so that the faster ColoredMA generates the entry signals while the slower Moving Average helps confirm the broader trend direction.

MA Filter Timeframe: Defines the timeframe of the Moving Average used as the additional filter. This can be different from the EA Timeframe and the main ColoredMA timeframe.

MA Filter Period: Defines the number of candles/bars used to calculate the Moving Average Filter. A higher period produces a smoother and slower Moving Average, while a lower period reacts more quickly to price movements.

MA Filter Method: Defines the calculation method of the Moving Average Filter, such as Simple, Exponential, Smoothed or Linear Weighted.

MA Filter Shift: Defines the number of candles/bars by which the Moving Average Filter is shifted on the chart.

MA Filter Applied Price: Defines the price data used to calculate the Moving Average Filter, such as Close, Open, High, Low, Median, etc.


Trading Time and Day Settings

Start Hour: Defines the hour at which the EA will begin opening new trades. The setting uses your broker's server time.

Start Minutes: Defines the exact minute within the Start Hour at which the EA will begin opening new trades.

End Hour: Defines the hour at which the EA will stop opening new trades.

End Minutes: Defines the exact minute within the End Hour at which the EA will stop opening new trades.

Trade on Monday: Enables or disables the opening of new trades on Mondays.

Trade on Tuesday: Enables or disables the opening of new trades on Tuesdays.

Trade on Wednesday: Enables or disables the opening of new trades on Wednesdays.

Trade on Thursday: Enables or disables the opening of new trades on Thursdays.

Trade on Friday: Enables or disables the opening of new trades on Fridays.

Trade on Saturday: Enables or disables the opening of new trades on Saturdays.

Trade on Sunday: Enables or disables the opening of new trades on Sundays.

Orders per Session: Defines the maximum number of trades that the EA can open during each trading session between the configured Start and End times.

Max Spread in Points: Defines the maximum spread, in points, allowed for opening a new trade. If the current spread is higher than this value, the EA will not open the trade.

Max Slippage in Points: Defines the maximum permitted slippage, in points, when executing a trade.


Stop Loss, Take Profit, Break Even and Trailing Stop

Use SL/TP Levels in: Select either Points or Percentage of Average Daily Range to determine how the Stop Loss, Take Profit, Break Even and Trailing Stop Loss levels are calculated.

If Points is selected, the EA uses the fixed point values configured below.

If Percentage of Average Daily Range is selected, the EA calculates these levels dynamically as percentages of the instrument's Average Daily Range (ADR), allowing the distances to adapt to changes in market volatility.

Stop Loss in Points: Defines the fixed Stop Loss distance, in points, for each trade.

Take Profit in Points: Defines the fixed Take Profit distance, in points, for each trade.

Virtual Stop Loss in Points: Defines a virtual Stop Loss distance managed internally by the EA rather than placed as a visible Stop Loss order with the broker.

Virtual Take Profit in Points: Defines a virtual Take Profit distance managed internally by the EA rather than placed as a visible Take Profit order with the broker.

Break Even Profit in Points: Defines the number of points in profit required before the EA moves the Stop Loss to the trade's entry price.

Trailing Start in Points: Defines the profit level, in points, at which the EA begins trailing the Stop Loss.

Trailing Stop in Points: Defines the distance, in points, that the Trailing Stop Loss maintains behind the current price.

Trailing Step in Points: Defines the increment, in points, by which the Trailing Stop Loss is adjusted as price moves in the trade's favor.


Average Daily Range (ADR) Levels

Average Daily Range Candles: Defines the number of daily candles used to calculate the Average Daily Range. This calculation is used for the Stop Loss, Take Profit, Break Even and Trailing Stop Loss settings when Percentage of Average Daily Range is selected.

Stop Loss in % of ADR: Defines the Stop Loss as a percentage of the instrument's Average Daily Range. For example, if this setting is 30 and the calculated ADR is 1000 points, the Stop Loss will be 300 points.

Take Profit in % of ADR: Defines the Take Profit as a percentage of the instrument's Average Daily Range. For example, if this setting is 50 and the calculated ADR is 1000 points, the Take Profit will be 500 points.

Break Even in % of ADR: Defines the profit level at which the EA moves the Stop Loss to Break Even, calculated as a percentage of ADR. For example, a setting of 20 with an ADR of 1000 points means that Break Even will activate at 200 points of profit.

Trailing Start in % of ADR: Defines the profit level at which the EA starts trailing the Stop Loss, calculated as a percentage of ADR. For example, a setting of 40 with an ADR of 1000 points means that trailing will start at 400 points of profit.

Trailing Stop in % of ADR: Defines the Trailing Stop Loss distance as a percentage of ADR. For example, a setting of 30 with an ADR of 1000 points creates a Trailing Stop distance of 300 points.

Trailing Step in % of ADR: Defines the Trailing Stop adjustment step as a percentage of ADR. For example, a setting of 10 with an ADR of 1000 points means that the Trailing Stop will be adjusted in 100-point increments.


Basket Trade Management

Basket Take Profit %: Defines the Take Profit level for all open positions combined as a percentage of the account balance. When this level is reached, the EA closes all applicable open positions. Decimal values can be used. *

Use Basket Stop Loss: Enables or disables the Basket Stop Loss feature.

Basket Stop Loss %: Defines the Basket Stop Loss level as a percentage of the account balance. When the combined floating loss reaches this level, the EA closes all applicable open positions. Decimal values can be used. *

Use Basket Break Even: Enables or disables the Basket Break Even feature.

Basket Break Even %: Defines the combined profit level, as a percentage of account balance, at which the Basket Stop Loss is moved to Break Even. Decimal values can be used. *

Use Basket Trailing: Enables or disables the Basket Trailing Stop Loss feature.

Basket Trailing Start %: Defines the combined profit level, as a percentage of account balance, at which Basket Trailing begins.

Basket Trailing Stop %: Defines the Basket Trailing Stop Loss level as a percentage of account balance. *

Basket Trailing Step %: Defines the percentage step by which the Basket Trailing Stop Loss is adjusted as combined profits increase.

Close by Opposite Signal: Enables or disables the option to close trades when the main ColoredMA produces a signal in the opposite direction. For example, Buy trades can be closed when the ColoredMA changes from blue to red, and Sell trades can be closed when it changes from red to blue.


Automatic Time-Based Trade Closure

Close All Trades on: Enables or disables the automatic closure of all open trades at a specified time. You can select a particular day of the week or every day.

This can be useful for controlling overnight, rollover or weekend exposure. The EA will not automatically close trades that are opened after the specified closing time. If you do not want any new trades to be opened after that time, set the EA's End Hour/Minutes earlier than the configured closing time.

Close All Trades Hour: Defines the hour at which the EA will automatically close the open trades on the selected day. This setting uses the broker's server time. For example, to close trades at 22:40, enter 22.

Close All Trades Minutes: Defines the minute at which the automatic closure will occur. For example, to close trades at 22:40, enter 40.


* Basket settings are calculated as equity over balance and take swaps and commissions into account.



✔️ Moving Average EA ΜΤ4©: https://www.mql5.com/en/market/product/45633

✔️ Moving Average EA ΜΤ5©: https://www.mql5.com/en/market/product/47673



www.juvenille-emperor.com

www.local-trade-copier.com

www.prop-firm-copier.com

www.prop-challenge-copier.com

www.forex-local-trade-copier.com

www.low-latency-copier.com

www.fast-trade-copier.com

www.best-trade-copier.com

www.mt5-to-mt5-copier.com

www.trade-copier-mt5.com

www.mt4-mt5-trade-copier.com

www.matrix-arrow-indicator.com

www.matrixarrowindicator.com

www.best-forex-indicator-mt4.com

www.best-forex-indicator-mt5.com