명시
MQL5 Trading Robot Specification
Platform: MetaTrader 5 (MT5)
Robot Type: Moving Average Crossover Strategy
1. Strategy Overview
This Expert Advisor (EA) is based on a triple moving average crossover strategy using three smoothed moving averages (SMAs):
-
21-period
-
50-period
-
200-period
The EA will detect trend changes (market structure shifts) and execute trades when all three moving averages align in the same direction, confirming a strong trend.
2. Instruments to Trade
The EA must be able to trade on the following instruments:
-
EURUSD
-
XAUUSD (Gold)
-
NASDAQ (NAS100)
-
AUDUSD
3. Timeframe
The EA will operate and analyze signals on the 15-minute (M15) timeframe.
4. Entry Conditions
Buy Setup:
-
The 21 SMA crosses above the 50 SMA and both are above the 200 SMA.
-
The most recent candlesticks are bullish.
-
When this confirmation occurs, the EA should open two Buy positions at the close of the bullish confirmation candle and every following bullish candle EA should open one Buy position per candle.
Sell Setup:
-
The 21 SMA crosses below the 50 SMA and both are below the 200 SMA.
-
The most recent candlesticks are bearish.
-
When this confirmation occurs, the EA should open two Sell positions at the close of the bearish confirmation candle and every following bearish candle EA should open one Sell position per candle.
5. Exit Conditions
-
The EA should close all open positions when the trend starts to change its character (for example, when the 21 SMA crosses in the opposite direction or the candle structure changes trend).
-
Additionally, each trade should have a fixed Take Profit of 30 pips and a Stop Loss of 10 pips.
6. Risk Management
-
Lot size: Based on account balance (e.g., a fixed risk percentage per trade — developer can allow user to input this).
-
Maximum open trades per day: 10 trades maximum.
-
Stop Loss: Fixed at 10 pips.
-
Take Profit: Fixed at 30 pips (risk-to-reward ratio = 1:3).
-
Trailing Stop: Optional (can be added as a user input).
7. Extra Features
-
News Filter: The EA should avoid trading during high-impact news events.
-
Trading Time Filter: The EA should trade during the London and New York sessions.
-
Magic Number: Each trade should have a unique magic number for tracking.
-
Notifications: Optional alerts for opened or closed trades.
8. Platform
-
MetaTrader 5 (MT5) compatible
-
Must support backtesting in MT5 Strategy Tester