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%
    Working
    2
    Developer 2
    Rating
    (51)
    Projects
    69
    35%
    Arbitration
    4
    25% / 75%
    Overdue
    0
    Free
    3
    Developer 3
    Rating
    (104)
    Projects
    170
    24%
    Arbitration
    23
    9% / 78%
    Overdue
    16
    9%
    Working
    4
    Developer 4
    Rating
    (19)
    Projects
    23
    9%
    Arbitration
    6
    33% / 50%
    Overdue
    1
    4%
    Busy
    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
    (19)
    Projects
    22
    36%
    Arbitration
    4
    25% / 50%
    Overdue
    1
    5%
    Free
    Published: 4 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
    (313)
    Projects
    559
    35%
    Arbitration
    79
    32% / 43%
    Overdue
    203
    36%
    Free
    15
    Developer 15
    Rating
    (630)
    Projects
    994
    47%
    Arbitration
    33
    36% / 36%
    Overdue
    98
    10%
    Free
    Published: 6 codes
    16
    Developer 16
    Rating
    (71)
    Projects
    103
    20%
    Arbitration
    6
    0% / 83%
    Overdue
    3
    3%
    Free
    17
    Developer 17
    Rating
    (37)
    Projects
    40
    58%
    Arbitration
    1
    100% / 0%
    Overdue
    1
    3%
    Working
    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
    (14)
    Projects
    19
    11%
    Arbitration
    4
    50% / 25%
    Overdue
    4
    21%
    Working
    21
    Developer 21
    Rating
    (4)
    Projects
    8
    13%
    Arbitration
    2
    0% / 0%
    Overdue
    2
    25%
    Working
    22
    Developer 22
    Rating
    (30)
    Projects
    37
    54%
    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
    (6)
    Projects
    6
    0%
    Arbitration
    2
    50% / 0%
    Overdue
    1
    17%
    Free
    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
    (32)
    Projects
    35
    34%
    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
    You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
    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
    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
    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
    Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
    I offer expert services to refine and optimize your MetaTrader 5 Expert Advisors for peak performance. My approach focuses on achieving a maximum Sharpe Ratio while strictly limiting Maximum Drawdown (Max DD) , making the strategy suitable for high-standard environments like prop firm trading . I specialize in indicator-based logic and logical filter enhancements rather than external Telegram signals. With a
    I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
    I am a Professional Forex Trader, actively working in the financial markets with a strong focus on how price truly moves. I specialize in logic, market structure, and institutional behavior rather than indicators or guesswork. I have mastered: • Market Structure • Trend Identification • Elliott Wave Theory • Wyckoff Logic My core expertise lies in: • Deep understanding of market structure • Identifying
    EA for prop firms 30 - 500 USD
    Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even

    Project information

    Budget
    35+ USD