Need to add hedging and recovery feature to an old EA

Specifiche

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. 

    Con risposta

    1
    Sviluppatore 1
    Valutazioni
    (22)
    Progetti
    29
    3%
    Arbitraggio
    4
    25% / 0%
    In ritardo
    3
    10%
    In elaborazione
    2
    Sviluppatore 2
    Valutazioni
    (51)
    Progetti
    69
    35%
    Arbitraggio
    4
    25% / 75%
    In ritardo
    0
    Gratuito
    3
    Sviluppatore 3
    Valutazioni
    (104)
    Progetti
    166
    24%
    Arbitraggio
    23
    9% / 78%
    In ritardo
    16
    10%
    In elaborazione
    4
    Sviluppatore 4
    Valutazioni
    (18)
    Progetti
    22
    9%
    Arbitraggio
    6
    33% / 50%
    In ritardo
    1
    5%
    In elaborazione
    5
    Sviluppatore 5
    Valutazioni
    (75)
    Progetti
    80
    6%
    Arbitraggio
    46
    11% / 54%
    In ritardo
    7
    9%
    In elaborazione
    6
    Sviluppatore 6
    Valutazioni
    (12)
    Progetti
    19
    42%
    Arbitraggio
    3
    0% / 67%
    In ritardo
    3
    16%
    Gratuito
    7
    Sviluppatore 7
    Valutazioni
    (19)
    Progetti
    22
    36%
    Arbitraggio
    3
    33% / 33%
    In ritardo
    1
    5%
    In elaborazione
    Pubblicati: 3 codici
    8
    Sviluppatore 8
    Valutazioni
    (3)
    Progetti
    3
    0%
    Arbitraggio
    1
    0% / 100%
    In ritardo
    0
    Gratuito
    9
    Sviluppatore 9
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    10
    Sviluppatore 10
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    11
    Sviluppatore 11
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    1
    0% / 0%
    In ritardo
    0
    In elaborazione
    12
    Sviluppatore 12
    Valutazioni
    (4)
    Progetti
    4
    0%
    Arbitraggio
    1
    0% / 100%
    In ritardo
    0
    Gratuito
    13
    Sviluppatore 13
    Valutazioni
    (3)
    Progetti
    1
    100%
    Arbitraggio
    3
    0% / 100%
    In ritardo
    0
    Gratuito
    14
    Sviluppatore 14
    Valutazioni
    (308)
    Progetti
    553
    35%
    Arbitraggio
    79
    32% / 42%
    In ritardo
    200
    36%
    Caricato
    15
    Sviluppatore 15
    Valutazioni
    (626)
    Progetti
    984
    47%
    Arbitraggio
    33
    36% / 33%
    In ritardo
    97
    10%
    In elaborazione
    Pubblicati: 6 codici
    16
    Sviluppatore 16
    Valutazioni
    (71)
    Progetti
    103
    20%
    Arbitraggio
    6
    0% / 83%
    In ritardo
    3
    3%
    Gratuito
    17
    Sviluppatore 17
    Valutazioni
    (32)
    Progetti
    32
    63%
    Arbitraggio
    1
    0% / 0%
    In ritardo
    1
    3%
    In elaborazione
    Pubblicati: 5 codici
    18
    Sviluppatore 18
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    19
    Sviluppatore 19
    Valutazioni
    (1)
    Progetti
    1
    100%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    20
    Sviluppatore 20
    Valutazioni
    (12)
    Progetti
    16
    13%
    Arbitraggio
    4
    50% / 25%
    In ritardo
    4
    25%
    In elaborazione
    21
    Sviluppatore 21
    Valutazioni
    (2)
    Progetti
    4
    25%
    Arbitraggio
    0
    In ritardo
    1
    25%
    In elaborazione
    22
    Sviluppatore 22
    Valutazioni
    (30)
    Progetti
    37
    54%
    Arbitraggio
    2
    50% / 50%
    In ritardo
    3
    8%
    Gratuito
    23
    Sviluppatore 23
    Valutazioni
    (6)
    Progetti
    4
    0%
    Arbitraggio
    5
    0% / 100%
    In ritardo
    0
    Gratuito
    24
    Sviluppatore 24
    Valutazioni
    (10)
    Progetti
    14
    43%
    Arbitraggio
    0
    In ritardo
    3
    21%
    Gratuito
    25
    Sviluppatore 25
    Valutazioni
    (270)
    Progetti
    552
    49%
    Arbitraggio
    57
    40% / 37%
    In ritardo
    227
    41%
    In elaborazione
    26
    Sviluppatore 26
    Valutazioni
    (6)
    Progetti
    6
    0%
    Arbitraggio
    2
    50% / 0%
    In ritardo
    1
    17%
    Gratuito
    27
    Sviluppatore 27
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    28
    Sviluppatore 28
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    29
    Sviluppatore 29
    Valutazioni
    (32)
    Progetti
    35
    34%
    Arbitraggio
    5
    0% / 80%
    In ritardo
    0
    In elaborazione
    Pubblicati: 2 codici
    Ordini simili
    Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
    Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
    Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
    Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
    Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
    Freeallfree 400 - 800 USD
    Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
    An Expert KBFX 30+ USD
    Fill orders first execution and real time trading, my strategy is that wait for clean confirmation before entering the market and fill orders for a snappier entrance,then execute trade after making profit on the position
    MosesRobot 100+ USD
    "I am looking for an expert developer to build a custom Forex Expert Advisor based on my specific strategy. Requirements: Full Source Code (.mq5) must be delivered. I retain 100% Intellectual Property and ownership of the bot. Must include a Risk Management module (Fixed Lot or % of balance). Must include a Trailing Stop and Break-even feature. Bot must be compatible with the MT5 Strategy Tester for 99% quality
    Automated trading system 150 - 250 USD
    Anyone I need my own bot with my own licenses keys I will pay up please the bot must make good profit and I will pay up good money just hope it helps me
    Develop a fully automated MT5 Expert Advisor based on a multi-timeframe institutional trend-pullback strategy with: Regime filtering (H4) Execution logic (H1) ATR-based stop model Multi-stage trailing system Risk-based position sizing Portfolio-level risk protection Detailed performance logging This EA will be used for client capital (PAMM/MAM environment). Stability and risk control are higher priority than high

    Informazioni sul progetto

    Budget
    35+ USD

    Cliente

    (13)
    Ordini effettuati41
    Numero di arbitraggi0