Need to add hedging and recovery feature to an old EA

Specification

DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL

Hedge Add-On Rules for Existing EA

Core Idea

  • SL becomes hypothetical (virtual) for the initial basket and for the hedge basket.

  • When price hits the virtual SL level, EA does not close the losing trades.

  • Instead, EA opens one hedge basket in the opposite direction.

    1. Original basket direction

    2. Hedge basket direction (opposite)

Inputs to be added, 

Enable Hedge true /false.

  • BasketCloseMode (enum)

    • A: Close all when basket P&L >= 0 (break-even)

    • B: Close all when basket P&L >= BasketProfitTargetUSD

    • C: If any trade hits TP → close all trades immediately

  • BasketProfitTargetUSD (only for mode B)

  • When original basket virtual SL is hit:

    • Do NOT close any existing trades.

    • If no hedge basket is active yet:

      • Open Hedge T1 immediately in the opposite direction.

      • Hedge T1 lot = same as original T1 lot.

      • Hedge TP = same TP distance (pips) used by the EA.

      • Hedge SL = 0 (no real SL).

      • Hedge basket is now “active”.

    EA coded in a way that if opens the top up trades and if the price reverses all will be closed in Break Even. If the hedge trade opens Top up trade and the price reverse the hedge cycle will close in BE and the initial trade ( original trade ) will close with a small loss. 

    Pls confirm all points before committing and only need developers having the similar knowledge. 

    Responded

    1
    Developer 1
    Rating
    (22)
    Projects
    29
    3%
    Arbitration
    4
    25% / 0%
    Overdue
    3
    10%
    Free
    2
    Developer 2
    Rating
    (51)
    Projects
    71
    37%
    Arbitration
    4
    25% / 75%
    Overdue
    1
    1%
    Free
    Published: 1 code
    3
    Developer 3
    Rating
    (111)
    Projects
    184
    25%
    Arbitration
    25
    16% / 76%
    Overdue
    16
    9%
    Free
    4
    Developer 4
    Rating
    (22)
    Projects
    28
    7%
    Arbitration
    9
    33% / 33%
    Overdue
    1
    4%
    Working
    5
    Developer 5
    Rating
    (75)
    Projects
    80
    6%
    Arbitration
    46
    11% / 54%
    Overdue
    7
    9%
    Working
    6
    Developer 6
    Rating
    (13)
    Projects
    20
    40%
    Arbitration
    3
    0% / 67%
    Overdue
    3
    15%
    Free
    7
    Developer 7
    Rating
    (20)
    Projects
    23
    39%
    Arbitration
    4
    25% / 50%
    Overdue
    1
    4%
    Free
    Published: 6 codes
    8
    Developer 8
    Rating
    (3)
    Projects
    3
    0%
    Arbitration
    1
    0% / 100%
    Overdue
    0
    Free
    9
    Developer 9
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    10
    Developer 10
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    11
    Developer 11
    Rating
    (1)
    Projects
    1
    0%
    Arbitration
    1
    0% / 0%
    Overdue
    0
    Working
    12
    Developer 12
    Rating
    (4)
    Projects
    4
    0%
    Arbitration
    1
    0% / 100%
    Overdue
    0
    Free
    13
    Developer 13
    Rating
    (3)
    Projects
    1
    100%
    Arbitration
    3
    0% / 100%
    Overdue
    0
    Free
    14
    Developer 14
    Rating
    (319)
    Projects
    574
    35%
    Arbitration
    83
    31% / 45%
    Overdue
    207
    36%
    Free
    15
    Developer 15
    Rating
    (636)
    Projects
    1008
    47%
    Arbitration
    33
    36% / 36%
    Overdue
    99
    10%
    Working
    Published: 6 codes
    16
    Developer 16
    Rating
    (71)
    Projects
    103
    20%
    Arbitration
    6
    0% / 83%
    Overdue
    3
    3%
    Free
    17
    Developer 17
    Rating
    (45)
    Projects
    53
    57%
    Arbitration
    2
    100% / 0%
    Overdue
    1
    2%
    Free
    Published: 5 codes
    18
    Developer 18
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    19
    Developer 19
    Rating
    (1)
    Projects
    1
    100%
    Arbitration
    0
    Overdue
    0
    Free
    20
    Developer 20
    Rating
    (24)
    Projects
    32
    38%
    Arbitration
    4
    50% / 25%
    Overdue
    5
    16%
    Working
    21
    Developer 21
    Rating
    (10)
    Projects
    17
    18%
    Arbitration
    2
    0% / 50%
    Overdue
    3
    18%
    Loaded
    22
    Developer 22
    Rating
    (31)
    Projects
    38
    53%
    Arbitration
    2
    50% / 50%
    Overdue
    3
    8%
    Free
    23
    Developer 23
    Rating
    (6)
    Projects
    4
    0%
    Arbitration
    5
    0% / 100%
    Overdue
    0
    Free
    24
    Developer 24
    Rating
    (10)
    Projects
    14
    43%
    Arbitration
    0
    Overdue
    3
    21%
    Free
    25
    Developer 25
    Rating
    (271)
    Projects
    553
    50%
    Arbitration
    57
    40% / 37%
    Overdue
    227
    41%
    Working
    26
    Developer 26
    Rating
    (8)
    Projects
    8
    0%
    Arbitration
    2
    50% / 0%
    Overdue
    1
    13%
    Working
    27
    Developer 27
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    28
    Developer 28
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    29
    Developer 29
    Rating
    (33)
    Projects
    36
    33%
    Arbitration
    5
    0% / 80%
    Overdue
    0
    Working
    Published: 2 codes
    30
    Developer 30
    Rating
    (73)
    Projects
    257
    53%
    Arbitration
    16
    50% / 38%
    Overdue
    83
    32%
    Free
    31
    Developer 31
    Rating
    (2)
    Projects
    2
    0%
    Arbitration
    3
    0% / 100%
    Overdue
    1
    50%
    Free
    32
    Developer 32
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    33
    Developer 33
    Rating
    Projects
    0
    0%
    Arbitration
    0
    Overdue
    0
    Free
    Similar orders
    I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
    Trading 35+ USD
    Project: XAUUSD Gold Trading Robot for MetaTrader 5 I want to develop a fully automated Expert Advisor (EA) for MetaTrader 5, designed exclusively for Gold (XAUUSD) and compatible with the Exness broker. Trading Strategy: Liquidity + CHOCH + Retest Identify important buy-side and sell-side liquidity zones using previous highs and lows, equal highs/lows, and confirmed swing points. Wait for a clear liquidity sweep
    i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
    MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
    Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
    I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
    Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
    Hello International Developer, I need LIFETIME MT5 EA for XAUUSD Gold. REQUIREMENTS: 1. Lifetime bot - No expiry date, unlimited accounts, unlimited installations 2. Must include source code .mq5 file - This makes it lifetime 3. Every trade MUST have Stop Loss 300 points and Take Profit 600 points 4. No martingale, No grid, No averaging - Clean safe strategy 5. Auto lot size = 1% risk per trade for good margin growth
    Expert advisor 150+ USD
    Hiring: Forex Strategist & MQL5 Developer for Long-Term EA Development I am looking for an experienced Forex Strategist and MT5 (MQL5) Developer to work with me on an ongoing project to develop, test, improve, and optimize a profitable Forex Expert Advisor (EA). My Message to the Developer My budget is $150 . However, this is not intended to be a one-time payment for a finished product. I want an ongoing working
    Hello developers,I am looking for an experienced MQL5 developer to create an EA based on Moving Average retest strategy with advanced recovery system.The concept is simple: Entry is based on MA close and retest. Initial trade has small TP and no SL.If price goes against the initial position, the EA should manage it using:Opposite hedge tradePending limit grid systemBasket take profitMartingale lot multiplier after

    Project information

    Budget
    35+ USD