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
    166
    24%
    Arbitrage
    23
    9% / 78%
    En retard
    16
    10%
    Travail
    4
    Développeur 4
    Évaluation
    (18)
    Projets
    22
    9%
    Arbitrage
    6
    33% / 50%
    En retard
    1
    5%
    Travail
    5
    Développeur 5
    Évaluation
    (75)
    Projets
    80
    6%
    Arbitrage
    46
    11% / 54%
    En retard
    7
    9%
    Travail
    6
    Développeur 6
    Évaluation
    (12)
    Projets
    19
    42%
    Arbitrage
    3
    0% / 67%
    En retard
    3
    16%
    Gratuit
    7
    Développeur 7
    Évaluation
    (19)
    Projets
    22
    36%
    Arbitrage
    3
    33% / 33%
    En retard
    1
    5%
    Travail
    Publié : 3 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
    Projets
    0
    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
    (308)
    Projets
    553
    35%
    Arbitrage
    80
    31% / 41%
    En retard
    200
    36%
    Chargé
    15
    Développeur 15
    Évaluation
    (626)
    Projets
    984
    47%
    Arbitrage
    33
    36% / 33%
    En retard
    97
    10%
    Travail
    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
    (32)
    Projets
    32
    63%
    Arbitrage
    1
    0% / 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
    (12)
    Projets
    16
    13%
    Arbitrage
    4
    50% / 25%
    En retard
    4
    25%
    Travail
    21
    Développeur 21
    Évaluation
    (2)
    Projets
    4
    25%
    Arbitrage
    0
    En retard
    1
    25%
    Travail
    22
    Développeur 22
    Évaluation
    (30)
    Projets
    37
    54%
    Arbitrage
    2
    50% / 50%
    En retard
    3
    8%
    Gratuit
    Commandes similaires
    I have a working MT5 Expert Advisor. I am NOT looking to change the strategy logic. I only need professional optimization and performance improvement. Requirements: • Parameter optimization • Risk adjustment • Max drawdown reduction • Forward testing report • Optimization for Gold (XAUUSD) Please provide previous optimization reports
    Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
    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
    Project Overview I am looking to acquire high-quality, algorithmic trading strategies or specialized strategy testers developed in MQL5 . My primary focus is on the underlying logic and code architecture rather than historical performance (Track Record/Myfxbook). I require full ownership of the source code (.mq5) for further research, optimization, and scaling. Requirements & Scope I am interested in systems that

    Informations sur le projet

    Budget
    35+ USD

    Client

    (13)
    Commandes passées41
    Nombre d'arbitrages0