l want to create mt5 fully working ai self learning bot, I want it to use the orb ( opening range candle strategy) that works on only the opeing 15min candle on each trading open. Aisa, uk, and new York. I want it to draw a box from the hight to the low of the opening candle on the 15min time frame and then use the 1 min time frame to wait for a brake out of the box and retest before entering, I would like an option for set tp and sl and also a traling sl option and if possible a setting that can close only part of the traid at 3 different tp level or for it to open 3 traids at once all with the same sl but different tp levels MT5 GOLD REVERSAL & TREND BOUNCE SELF-LEARNING AI EA – FULL DETAILED SPECIFICATION 1. Timeframes & Instruments Main Trading Pair: XAUUSD (Gold). Primary Trading Timeframe (Entry): 1-Minute (M1). Additional Confirmation Timeframes: 5-Minute (M5): Short-term momentum shift confirmation. 15-Minute (M15): RSI exhaustion confirmation. 1-Hour (H1): RSI exhaustion confirmation & support/resistance alignment. 4-Hour (H4): Major trend structure, channels, and trendlines for strong confluence. Sessions: The EA must be capable of running 24/5, but also have the option to trade only during specific session windows (Asian, London, or New York sessions). 2. Entry Criteria A. RSI Multi-Timeframe Rules The EA must wait for RSI confluence across multiple timeframes before entering any trade: H1 RSI (14, Close): Must be at or below 30 for long positions OR at or above 70 for short positions. Alternatively, a clear bounce from these zones is valid (e.g., RSI dropped below 30 and is turning upward or hit 70 and is turning downward). M15 RSI (14, Close): Must confirm the H1 RSI reading by also being at or below 30 (long) or at or above 70 (short) OR showing a clear bounce from those levels. M5 RSI (14, Close): Must be showing a momentum shift back toward 50, confirming that the retracement or reversal is starting. M1 RSI (14, Close): Must have already touched/crossed 30 or 70 and started to move back (for reversals) before the entry candle closes. B. Support, Resistance & Trendline Confluence H4 Trendlines/Trend Channels: Automatically drawn by the EA. Must have a minimum of 3 confirmed touches (valid trendline/channel). Long Entries: Only if price is bouncing from a rising channel’s support trendline. Short Entries: Only if price is rejecting a falling channel’s resistance trendline. H1 Horizontal Support & Resistance: Auto-detected based on multiple price touches. Entries must align with major S/R levels for extra confluence. For trend continuation trades, the EA can also take bounces off H1 support/resistance in the direction of the overall H4 trend. C. Candle Pattern Confirmation (On M1) The EA should wait for all the following to align before taking an entry: Wick Rejection from the key level or trendline. Engulfing Candle in the direction of the trade (bullish engulfing for longs, bearish engulfing for shorts). Break of Structure (Change of Character): Clear HH or LL broken to signal reversal. Retracement: Price must pull back to the breakout level without creating a new higher high or lower low. RSI on M1 & M5 must still confirm momentum shift (as described above). 3. Trade Execution Rules Trades are entered on the close of the confirmation candle after all conditions align. Three trades are placed simultaneously per valid setup: Trade 1 (TP1) – Short-term scalp to nearest H1 S/R. Trade 2 (TP2) – Targeting the next H1 major S/R level. Trade 3 (TP3) – Targeting the opposite end of the H4 channel (long-term target). No stacking of multiple entries in the same direction until the first setup is fully closed. 4. Take Profit & Stop Loss Rules Take Profit Levels TP1: Nearest H1 support/resistance. TP2: The next major H1 support/resistance after TP1. TP3: The far side of the H4 trend channel (support or resistance). Smart Stop Loss Management Initial SL: Placed just below the last swing low for longs or above the last swing high for shorts. Smart Trailing SL Rules: Once TP1 is hit → All SLs move to breakeven. Once TP2 is hit → All SLs move to TP1 level. Optional classic trailing stop based on ATR or fixed pip step. 5. Risk Management Lot Size Options: Fixed lot size. Percentage risk per trade (e.g., 1–2% of account). Daily Max Loss: EA stops trading after a set percentage or monetary amount is lost in a day. Max Trades Per Day: User-defined. 6. Self-Learning AI Module The EA must include an AI-based optimization module that learns and adapts over time by backtesting live data: RSI Optimization: Learns which RSI exhaustion levels (e.g., 28 vs 30) have the highest probability. Candle Pattern Weighting: Adjusts how much weight is given to engulfing candles, wicks, and structure breaks based on past successful trades. Support & Resistance Accuracy: Learns which S/R levels and H4 channels provide the best reactions. Session Performance Tracking: Automatically prioritizes sessions (Asia/London/NY) where the strategy performs best. Trade Filtering: Reduces trades during choppy or low ATR conditions. 7. On-Screen Display Panel The EA should display: Current RSI readings for M1, M5, M15, H1. Marked H4 channels & H1 S/R levels on the chart. Active trades with SL & TP levels shown. Daily profit/loss, running win rate, and number of trades take Also with 4hr ris conformation