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
    170
    24%
    Arbitraggio
    23
    9% / 78%
    In ritardo
    16
    9%
    In elaborazione
    4
    Sviluppatore 4
    Valutazioni
    (19)
    Progetti
    23
    9%
    Arbitraggio
    6
    33% / 50%
    In ritardo
    1
    4%
    Occupato
    5
    Sviluppatore 5
    Valutazioni
    (75)
    Progetti
    80
    6%
    Arbitraggio
    46
    11% / 54%
    In ritardo
    7
    9%
    In elaborazione
    6
    Sviluppatore 6
    Valutazioni
    (13)
    Progetti
    20
    40%
    Arbitraggio
    3
    0% / 67%
    In ritardo
    3
    15%
    Gratuito
    7
    Sviluppatore 7
    Valutazioni
    (19)
    Progetti
    22
    36%
    Arbitraggio
    4
    25% / 50%
    In ritardo
    1
    5%
    Gratuito
    Pubblicati: 4 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
    (1)
    Progetti
    1
    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
    (313)
    Progetti
    559
    35%
    Arbitraggio
    79
    32% / 43%
    In ritardo
    203
    36%
    Gratuito
    15
    Sviluppatore 15
    Valutazioni
    (630)
    Progetti
    994
    47%
    Arbitraggio
    33
    36% / 36%
    In ritardo
    98
    10%
    Gratuito
    Pubblicati: 6 codici
    16
    Sviluppatore 16
    Valutazioni
    (71)
    Progetti
    103
    20%
    Arbitraggio
    6
    0% / 83%
    In ritardo
    3
    3%
    Gratuito
    17
    Sviluppatore 17
    Valutazioni
    (37)
    Progetti
    40
    58%
    Arbitraggio
    1
    100% / 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
    (14)
    Progetti
    19
    11%
    Arbitraggio
    4
    50% / 25%
    In ritardo
    4
    21%
    In elaborazione
    21
    Sviluppatore 21
    Valutazioni
    (4)
    Progetti
    8
    13%
    Arbitraggio
    2
    0% / 0%
    In ritardo
    2
    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
    (271)
    Progetti
    553
    50%
    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
    30
    Sviluppatore 30
    Valutazioni
    (73)
    Progetti
    257
    53%
    Arbitraggio
    16
    50% / 38%
    In ritardo
    83
    32%
    Gratuito
    31
    Sviluppatore 31
    Valutazioni
    (2)
    Progetti
    2
    0%
    Arbitraggio
    3
    0% / 100%
    In ritardo
    1
    50%
    Gratuito
    32
    Sviluppatore 32
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    33
    Sviluppatore 33
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    Ordini simili
    .. 30 - 200 USD
    Ebrahim Ajarousha uggjhh jhghjh jhb hbhh hbhkoo ddddf drrd ffff tff ftv. Tf. Rf. Ff. F. Ff v. Hb b h h h c c n j j e. K dk. K kx. Kd. Kc k. Xk. Dk. K xk. Nx. Nx. Xj. Xnx xk. X xk d c g t. X f. C x x c
    I have a fully developed and ready Expert Advisor for MT5. I am NOT looking for coding work. I am looking for an experienced MQL5 Market seller who can publish and manage my EA on the MQL5 Market on my behalf. The deal is revenue share — we split the income from sales or rentals. The EA is complete and ready to publish. If you have an established seller account on MQL5 Market with good reputation and experience
    I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
    Ninjatrader bot 30+ USD
    I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
    24/7 Pick-and-Pack Bot 30 - 200 USD
    Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
    24/7 Pick-and-Pack Bot 30 - 200 USD
    Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
    Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
    I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
    Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
    Pro firm setup 30+ USD
    Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us

    Informazioni sul progetto

    Budget
    35+ USD