Tâche terminée
Spécifications
Platform: MetaTrader 5 (MT5)
Symbol: XAUUSD (Gold)
Type: Fully automated trading system
Core Trading Logic
The EA should execute trades based on a multi-strategy approach, ensuring a high probability of success. It must incorporate:
✅ Trend Confirmation on Higher Timeframes – Uses H4, Daily, or Weekly charts to confirm the trend before executing trades on lower timeframes (M5, M15, or M30).
✅ Risk-Reward Optimization – Every trade should risk 5% of the account balance with a minimum 1:2 risk-reward ratio (i.e., 10% potential reward).
✅ Stop-Loss Protection – All trades must be secured with a stop loss to prevent large drawdowns.
✅ No Risky Strategies – Martingale, Grid, Averaging, and similar high-risk strategies are NOT allowed.
✅ Multiple Strategies Combined – The EA should use a mix of the following strategies:
- Moving Average Crossovers for trend identification
- Price Action & Breakout Trading (support/resistance, candlestick patterns)
- Momentum Indicators (RSI, MACD, or ADX for strength confirmation)
- ATR-based Volatility Filter to avoid low-volatility conditions
Risk & Money Management
✅ Fixed or Dynamic Lot Sizing – The EA should allow selecting between a fixed lot size or dynamic lot size based on account balance.
✅ Risk Per Trade – The EA must calculate lot size dynamically to ensure that only 5% of the balance is at risk per trade.
✅ Trailing Stop Feature – Once in profit, a trailing stop should be used to maximize gains.
✅ Break-even Mechanism – The EA should secure partial profits by moving the stop loss to break even when the trade reaches a certain percentage of the target.
Trading Timeframes & Flexibility
✅ Higher Timeframe Confirmation – The EA must allow users to select a higher timeframe (H1, H4, D1) for trend validation before placing trades on lower timeframes.
✅ Lower Timeframe Execution – Trades should be executed based on signals from M5, M15, or M30, with a confirmation filter from the higher timeframe.
✅ User-Controlled Parameters – Users should be able to choose which timeframes to use for confirmation and execution.
News Filter Integration
✅ The EA must include a news filter to avoid trading before and during high-impact news events.
✅ It should pull real-time news from an economic calendar (e.g., Forex Factory, Investing.com, or MQL5 news API).
✅ Adjustable settings for news impact level (High, Medium, Low) and minutes before & after news events to pause trading.
Adjustable Parameters (Input Settings)
The EA must include the following customizable settings:
🔹 Number of Trades: Limit the maximum open trades at a time.
🔹 Risk-Reward Ratio: Adjustable (Default: 1:2).
🔹 Dynamic or Fixed Lot: Option to choose between dynamic lot sizing or a fixed lot.
🔹 Lot Size: Customizable fixed lot size when not using dynamic lots.
🔹 Timeframe Selection: Choose higher and lower timeframes for analysis and execution.
🔹 Stop Loss & Take Profit: User-defined stop loss & take profit (or automatic based on ATR).
🔹 Trailing Stop Settings: Enable/disable and adjust trailing stop parameters.
🔹 Break-even Settings: Define at what percentage of TP the SL moves to break even.
🔹 News Filter Settings: Enable/disable news filter, impact level selection, time buffer before/after news.
Additional Requirements
✅ The EA must be lightweight, efficient, and optimized for execution speed.
✅ It should avoid repainting indicators or lagging strategies that can cause late entries.
✅ It must work with both 4-digit and 5-digit brokers.
✅ It should be compatible with ECN and standard accounts.
✅ The code should be well-documented and modular for future updates.