Need to add hedging and recovery feature to an old EA

Termos de Referência

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. 

    Respondido

    1
    Desenvolvedor 1
    Classificação
    (22)
    Projetos
    29
    3%
    Arbitragem
    4
    25% / 0%
    Expirado
    3
    10%
    Trabalhando
    2
    Desenvolvedor 2
    Classificação
    (51)
    Projetos
    69
    35%
    Arbitragem
    4
    25% / 75%
    Expirado
    0
    Livre
    3
    Desenvolvedor 3
    Classificação
    (104)
    Projetos
    170
    24%
    Arbitragem
    23
    9% / 78%
    Expirado
    16
    9%
    Trabalhando
    4
    Desenvolvedor 4
    Classificação
    (19)
    Projetos
    23
    9%
    Arbitragem
    6
    33% / 50%
    Expirado
    1
    4%
    Ocupado
    5
    Desenvolvedor 5
    Classificação
    (75)
    Projetos
    80
    6%
    Arbitragem
    46
    11% / 54%
    Expirado
    7
    9%
    Trabalhando
    6
    Desenvolvedor 6
    Classificação
    (13)
    Projetos
    20
    40%
    Arbitragem
    3
    0% / 67%
    Expirado
    3
    15%
    Livre
    7
    Desenvolvedor 7
    Classificação
    (19)
    Projetos
    22
    36%
    Arbitragem
    4
    25% / 50%
    Expirado
    1
    5%
    Livre
    Publicou: 4 códigos
    8
    Desenvolvedor 8
    Classificação
    (3)
    Projetos
    3
    0%
    Arbitragem
    1
    0% / 100%
    Expirado
    0
    Livre
    9
    Desenvolvedor 9
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    10
    Desenvolvedor 10
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    11
    Desenvolvedor 11
    Classificação
    (1)
    Projetos
    1
    0%
    Arbitragem
    1
    0% / 0%
    Expirado
    0
    Trabalhando
    12
    Desenvolvedor 12
    Classificação
    (4)
    Projetos
    4
    0%
    Arbitragem
    1
    0% / 100%
    Expirado
    0
    Livre
    13
    Desenvolvedor 13
    Classificação
    (3)
    Projetos
    1
    100%
    Arbitragem
    3
    0% / 100%
    Expirado
    0
    Livre
    14
    Desenvolvedor 14
    Classificação
    (313)
    Projetos
    559
    35%
    Arbitragem
    79
    32% / 43%
    Expirado
    203
    36%
    Livre
    15
    Desenvolvedor 15
    Classificação
    (630)
    Projetos
    994
    47%
    Arbitragem
    33
    36% / 36%
    Expirado
    98
    10%
    Livre
    Publicou: 6 códigos
    16
    Desenvolvedor 16
    Classificação
    (71)
    Projetos
    103
    20%
    Arbitragem
    6
    0% / 83%
    Expirado
    3
    3%
    Livre
    17
    Desenvolvedor 17
    Classificação
    (37)
    Projetos
    40
    58%
    Arbitragem
    1
    100% / 0%
    Expirado
    1
    3%
    Trabalhando
    Publicou: 5 códigos
    18
    Desenvolvedor 18
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    19
    Desenvolvedor 19
    Classificação
    (1)
    Projetos
    1
    100%
    Arbitragem
    0
    Expirado
    0
    Livre
    20
    Desenvolvedor 20
    Classificação
    (14)
    Projetos
    19
    11%
    Arbitragem
    4
    50% / 25%
    Expirado
    4
    21%
    Trabalhando
    21
    Desenvolvedor 21
    Classificação
    (4)
    Projetos
    8
    13%
    Arbitragem
    2
    0% / 0%
    Expirado
    2
    25%
    Trabalhando
    22
    Desenvolvedor 22
    Classificação
    (30)
    Projetos
    37
    54%
    Arbitragem
    2
    50% / 50%
    Expirado
    3
    8%
    Livre
    23
    Desenvolvedor 23
    Classificação
    (6)
    Projetos
    4
    0%
    Arbitragem
    5
    0% / 100%
    Expirado
    0
    Livre
    24
    Desenvolvedor 24
    Classificação
    (10)
    Projetos
    14
    43%
    Arbitragem
    0
    Expirado
    3
    21%
    Livre
    25
    Desenvolvedor 25
    Classificação
    (271)
    Projetos
    553
    50%
    Arbitragem
    57
    40% / 37%
    Expirado
    227
    41%
    Trabalhando
    26
    Desenvolvedor 26
    Classificação
    (6)
    Projetos
    6
    0%
    Arbitragem
    2
    50% / 0%
    Expirado
    1
    17%
    Livre
    27
    Desenvolvedor 27
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    28
    Desenvolvedor 28
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    29
    Desenvolvedor 29
    Classificação
    (32)
    Projetos
    35
    34%
    Arbitragem
    5
    0% / 80%
    Expirado
    0
    Trabalhando
    Publicou: 2 códigos
    30
    Desenvolvedor 30
    Classificação
    (73)
    Projetos
    257
    53%
    Arbitragem
    16
    50% / 38%
    Expirado
    83
    32%
    Livre
    31
    Desenvolvedor 31
    Classificação
    (2)
    Projetos
    2
    0%
    Arbitragem
    3
    0% / 100%
    Expirado
    1
    50%
    Livre
    32
    Desenvolvedor 32
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    33
    Desenvolvedor 33
    Classificação
    Projetos
    0
    0%
    Arbitragem
    0
    Expirado
    0
    Livre
    Pedidos semelhantes
    .. 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

    Informações sobre o projeto

    Orçamento
    35+ USD