Hello,
I need an Expert Advisor for MetaTrader 5 in MQL5.
1. GENERAL: Scalping on M1, Monday to Friday, 3 symbols: XAUUSD, EURUSD, GBPUSD. Scan every tick. Fully automatic. NO MARTINGALE, NO GRID, NO HEDGING.
2. TIMEFRAME: M1 ONLY. Use PERIOD_M1 for all indicators. Magic 101010. Comment "Adaptive V11". Deviation 10. Spread filter: >30 points EURUSD/GBPUSD or >50 points XAUUSD = NO TRADE.
3. INDICATORS: EMA 20, EMA 50, EMA 200, RSI 14, ATR 14, MACD 12,26,9, Bollinger Bands 20, 2.0, Stochastic 14,3,3, ADX 14, Volume Tick. All on M1 Close.
4. SCORE: -4 to +4. +1 if EMA20>EMA50, +1 if Price>EMA20, +1 if RSI 55-75, -1 if RSI 25-45, +1 if MACD Main>Signal, +1 if Breakout Up, -1 if Breakout Down. Score >=+3 = STRONG BUY, ==+2 = WEAK BUY, <=-3 = STRONG SELL, ==-2 = WEAK SELL, -1,0,+1 = NO TRADE.
5. LOT AND POSITIONS: Lot = (Balance/100)*0.01. 100$=0.01, 1000$=0.10. Min 0.01, Max 5.00. Recalculated every trade. Number of positions depends on signal strength: WEAK signal score +2 / -2 = 1 to 2 trades. STRONG signal score +3 / -3 = 3 to 6 trades. VERY STRONG signal score +4 / -4 = up to 10 trades MAXIMUM. Never more than 10.
6. ENTRY: Only on new M1 candle. SL=0, TP=0. No fixed SL/TP.
7. EXIT: No fixed TP. If in profit and analysis still same direction, LET IT RUN. If in floating profit and reversal detected (Price closes below EMA20 + RSI <48 for BUY, or Price above EMA20 + RSI >52 for SELL, OR RSI Divergence), CLOSE ALL immediately. After close, re-analyze and adapt.
8. PROTECTION: No trailing stop. Reversal detection IS protection. Never let profit become big loss.
9. OPERATION: Run non-stop Mon-Fri. Handle reconnection, VPS restart.
10. DELIVERY: Please provide source file .mq5 + compiled .ex5 + short documentation PDF + short video demo showing EA running.
11. MARKET ANALYSIS MODULES:
11.1 MARKET TYPE: Identify Trending Up, Trending Down, Ranging, Choppy. Use ADX + EMA 20/50/200 + Bollinger Width. If Choppy = NO TRADE. If Ranging without breakout = NO TRADE.
11.2 FAKEOUT: If price breaks Bollinger but Volume is low and RSI >75 or <25, it is a trap, DO NOT ENTER.
11.3 VOLATILITY: If ATR doubles in 1 candle, or candle body > 3x ATR, or gap > 2x ATR, DO NOT ENTER.
11.4 SUPPORT / RESISTANCE: Last 20 candles High/Low. Breakout with strong Volume = valid, add +1 / -1 to score. Breakout with low volume = ignore.
11.5 EXHAUSTION: If RSI >78 and Stochastic >85 = DO NOT BUY. If RSI <22 and Stochastic <15 = DO NOT SELL.
11.6 DIVERGENCE: RSI Divergence = reversal signal, close if in profit.
11.7 VOLUME: Volume must be above average of last 9 candles for breakout to be valid.
11.8 CANDLE: Identify Big candle, Doji, Pin Bar. If Doji after strong move, do not add position.
11.9 TREND STRENGTH: ADX >25 = Strong Trend. ADX <20 = Weak Trend.
If ANY module says DANGER / TRAP / CHOPPY / EXHAUSTED / NEWS, DO NOT trade, even if score is strong.
12. DASHBOARD: Show on chart: EA Name, Balance, Symbol, Signal, Score, Market Type, Detector Status, Floating Profit, Open Positions, Lot, Status.
All points are required. Thank you.