Spécifications
I need a mt5 Expert advisor ea to manage intraday trades with strict risk management.
The EA must
-Handle between 5 to 8 clean trades a day max altogether throughout all 3 sessions. no big news trading times and no overnight trades
-Use 1% on forex pairs and upto 2% on XAUUSD risk per trade
- Automatically calculate lot size based on stop loss
-use fixed RR ratio [1:2]
For forex pairs, the stop loss should be adjustable within a 20/40 pip range depending on market conditions and pair volatility
Lower volatility pairs should use smaller stop losses {around 20 pips} while higher volatility pairs should use larger stop losses {around 40 pips}
For XAUUSD the stop loss should be adjustable within a 50-80 pip range depending on market conditions
The EA must automatically calculate lot size based on the selected risk percentage and stop loss.
Take profit should follow a fixed 1;2 risk to reward ratio.
XAUUSD must be handled separately from forex pairs with its own stop loss settings
Th EA must be fully testable and functional on a mt5 demo account and must work correctly and assist
with intial set up and testing if required before final delivery
Include manual lot size override
FULLY AUTOMATED ENTRY STRATEGY
The EA must include a fully automated entry strategy based on trend + breakout + retest logic.
BUY CONDITIONS
Price must be above the 50 period moving average [trend filter]
price breaks above a recent high [break of structure]
price pulls back [retest] to the breakout level
A bullish candle closes after the retest
SELL CONDITIONS
Price must be below the 50 period average
price breaks below a recent low [break of structure]
price pulls back retest to the breakout level
A bearish candle closes after the retest
ADDITIONAL RULES
Only trade the direction of the trend
Only 1 trade per set up
No trades when price is ranging; define range as price staying within a 20-30 pip zone for atleast 20 candles m5 timeframe or low atr conditions
Recent high/low should be based on the last 20 candles on the current timeframe.
The EA will operate on m5 timeframe.
Trading sessions
;ASIAN SESSION
;LONDON SESSION
:NEW YORK SESSION
Exact session times should be configurable in EA settings
The EA must strictly follow all rules listed above and be delivered as a fully automated, reliable system.
The ea should be simple, reliable and focused on execution and risk control