3 MA Cross EA
This is a powerful addition to your MetaTrader 5 toolkit designed to optimize market analysis and performance. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use 3 MA Cross EA
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
The EA uses two indicators: and .
The following three options are available for setting stop loss and take profit:
Trailing Stop
is greater than zero. In this case a usual trailing stop function will be applied to positions;
Auto SL/TP
is set to 'true'. In this case the TP and SL levels are determined based on the "Price Channel" indicator;
BreakEven
is greater than zero: if a position has reached 'BreakEven' points of profit, the position is moved to BreakEven points.
Important note: only one of the three options can be selected. If one of the options is selected, the other two must be disabled. For example
BreakEven
is set to 15. Then the
Trailing Stop
parameter must be set to zero, and
Auto SL/TP
must be set to false (these are the default EA parameters).
Also, there are two options for setting position volume: fixed lot equal to
Lots
or risk percent of free margin
Risk in percent for a deal from a free margin
. Only one option can be selected: if
Lots
is equal to or less than zero, risk percent per trade will be used.
The EA was optimized for USDJPY,H1 (these parameters are used in the EA by default):
Input Parameters
Trade parameters
:
Lots
(if <=0 -> use risk from a free margin) - position volume;
Stop Loss
Take Profit
Trailing Stop
Risk
- risk per trade as percent of free margin;
Auto SL/TP
- stop loss and take profit based on the "Price Channel" indicator;
Trade at close bar
- trading on a closed bar: if 'true' the EA uses data of bar #1, if 'false' the EA trades on bar #0;
BreakEven
;
Max open positions
- the maximum allowed number of positions in one direction.
MA Cross 3MACross Alert WarnSig
indicator parameters:
Parameters of the first Moving Average
:
Period
of the first Moving Average;
Shift
of the first Moving Average;
Method
of the first Moving Average.
Parameters of the second Moving Average
:
Period
of the second Moving Average;
Shift
of the second Moving Average;
Method
of the second Moving Average.
Parameters of the Third Moving Average
:
Period
of the third Moving Average;
Shift
of the third Moving Average;
Method
of the third Moving Average.
crossesOnCurrent
;
alertsOn
;
alertsMessage
;
alertsSound
;
Price Channel
indicator parameters:
InpChannelPeriod
- calculation period (the number of bars).