Need to add hedging and recovery feature to an old EA

Spécifications

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. 

    Répondu

    1
    Développeur 1
    Évaluation
    (22)
    Projets
    29
    3%
    Arbitrage
    4
    25% / 0%
    En retard
    3
    10%
    Travail
    2
    Développeur 2
    Évaluation
    (51)
    Projets
    69
    35%
    Arbitrage
    4
    25% / 75%
    En retard
    0
    Gratuit
    3
    Développeur 3
    Évaluation
    (104)
    Projets
    170
    24%
    Arbitrage
    23
    9% / 78%
    En retard
    16
    9%
    Travail
    4
    Développeur 4
    Évaluation
    (19)
    Projets
    23
    9%
    Arbitrage
    6
    33% / 50%
    En retard
    1
    4%
    Occupé
    5
    Développeur 5
    Évaluation
    (75)
    Projets
    80
    6%
    Arbitrage
    46
    11% / 54%
    En retard
    7
    9%
    Travail
    6
    Développeur 6
    Évaluation
    (13)
    Projets
    20
    40%
    Arbitrage
    3
    0% / 67%
    En retard
    3
    15%
    Gratuit
    7
    Développeur 7
    Évaluation
    (19)
    Projets
    22
    36%
    Arbitrage
    4
    25% / 50%
    En retard
    1
    5%
    Gratuit
    Publié : 4 codes
    8
    Développeur 8
    Évaluation
    (3)
    Projets
    3
    0%
    Arbitrage
    1
    0% / 100%
    En retard
    0
    Gratuit
    9
    Développeur 9
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    10
    Développeur 10
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    11
    Développeur 11
    Évaluation
    (1)
    Projets
    1
    0%
    Arbitrage
    1
    0% / 0%
    En retard
    0
    Travail
    12
    Développeur 12
    Évaluation
    (4)
    Projets
    4
    0%
    Arbitrage
    1
    0% / 100%
    En retard
    0
    Gratuit
    13
    Développeur 13
    Évaluation
    (3)
    Projets
    1
    100%
    Arbitrage
    3
    0% / 100%
    En retard
    0
    Gratuit
    14
    Développeur 14
    Évaluation
    (313)
    Projets
    559
    35%
    Arbitrage
    79
    32% / 43%
    En retard
    203
    36%
    Gratuit
    15
    Développeur 15
    Évaluation
    (630)
    Projets
    994
    47%
    Arbitrage
    33
    36% / 36%
    En retard
    98
    10%
    Gratuit
    Publié : 6 codes
    16
    Développeur 16
    Évaluation
    (71)
    Projets
    103
    20%
    Arbitrage
    6
    0% / 83%
    En retard
    3
    3%
    Gratuit
    17
    Développeur 17
    Évaluation
    (37)
    Projets
    40
    58%
    Arbitrage
    1
    100% / 0%
    En retard
    1
    3%
    Travail
    Publié : 5 codes
    18
    Développeur 18
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    19
    Développeur 19
    Évaluation
    (1)
    Projets
    1
    100%
    Arbitrage
    0
    En retard
    0
    Gratuit
    20
    Développeur 20
    Évaluation
    (14)
    Projets
    19
    11%
    Arbitrage
    4
    50% / 25%
    En retard
    4
    21%
    Travail
    21
    Développeur 21
    Évaluation
    (4)
    Projets
    8
    13%
    Arbitrage
    2
    0% / 0%
    En retard
    2
    25%
    Travail
    22
    Développeur 22
    Évaluation
    (30)
    Projets
    37
    54%
    Arbitrage
    2
    50% / 50%
    En retard
    3
    8%
    Gratuit
    23
    Développeur 23
    Évaluation
    (6)
    Projets
    4
    0%
    Arbitrage
    5
    0% / 100%
    En retard
    0
    Gratuit
    24
    Développeur 24
    Évaluation
    (10)
    Projets
    14
    43%
    Arbitrage
    0
    En retard
    3
    21%
    Gratuit
    25
    Développeur 25
    Évaluation
    (271)
    Projets
    553
    50%
    Arbitrage
    57
    40% / 37%
    En retard
    227
    41%
    Travail
    26
    Développeur 26
    Évaluation
    (6)
    Projets
    6
    0%
    Arbitrage
    2
    50% / 0%
    En retard
    1
    17%
    Gratuit
    27
    Développeur 27
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    28
    Développeur 28
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    29
    Développeur 29
    Évaluation
    (32)
    Projets
    35
    34%
    Arbitrage
    5
    0% / 80%
    En retard
    0
    Travail
    Publié : 2 codes
    30
    Développeur 30
    Évaluation
    (73)
    Projets
    257
    53%
    Arbitrage
    16
    50% / 38%
    En retard
    83
    32%
    Gratuit
    31
    Développeur 31
    Évaluation
    (2)
    Projets
    2
    0%
    Arbitrage
    3
    0% / 100%
    En retard
    1
    50%
    Gratuit
    32
    Développeur 32
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    33
    Développeur 33
    Évaluation
    Projets
    0
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    Commandes similaires
    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
    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
    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 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 need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE

    Informations sur le projet

    Budget
    35+ USD