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
    166
    24%
    Arbitration
    23
    9% / 78%
    Overdue
    16
    10%
    Working
    4
    Developer 4
    Rating
    (18)
    Projects
    22
    9%
    Arbitration
    6
    33% / 50%
    Overdue
    1
    5%
    Working
    5
    Developer 5
    Rating
    (75)
    Projects
    80
    6%
    Arbitration
    46
    11% / 54%
    Overdue
    7
    9%
    Working
    6
    Developer 6
    Rating
    (12)
    Projects
    19
    42%
    Arbitration
    3
    0% / 67%
    Overdue
    3
    16%
    Free
    7
    Developer 7
    Rating
    (19)
    Projects
    22
    36%
    Arbitration
    3
    33% / 33%
    Overdue
    1
    5%
    Working
    Published: 3 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
    Projects
    0
    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
    (308)
    Projects
    553
    35%
    Arbitration
    80
    31% / 41%
    Overdue
    200
    36%
    Loaded
    15
    Developer 15
    Rating
    (626)
    Projects
    984
    47%
    Arbitration
    33
    36% / 33%
    Overdue
    97
    10%
    Working
    Published: 6 codes
    16
    Developer 16
    Rating
    (71)
    Projects
    103
    20%
    Arbitration
    6
    0% / 83%
    Overdue
    3
    3%
    Free
    17
    Developer 17
    Rating
    (32)
    Projects
    32
    63%
    Arbitration
    1
    0% / 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
    (12)
    Projects
    16
    13%
    Arbitration
    4
    50% / 25%
    Overdue
    4
    25%
    Working
    21
    Developer 21
    Rating
    (2)
    Projects
    4
    25%
    Arbitration
    0
    Overdue
    1
    25%
    Working
    22
    Developer 22
    Rating
    (30)
    Projects
    37
    54%
    Arbitration
    2
    50% / 50%
    Overdue
    3
    8%
    Free
    Similar orders
    Billionflow 30 - 100 USD
    Trading specifications: Indicators: Bollinger band ( Period 40, Deviation 1 apply to close) Moving Average (Exponential ) Period 17 applied to high Moving Average ( Exponential ) Period 17 applied to low But Signal enter a buy trade when prices crosses the lower band of the bollinger band up and also crosses the moving average channel of high and low the reverse is true for sell signal
    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
    I need Ea that executes trade based on trading view indicator called Market Structure CHoCH/BOS (Fractal) [LuxAlgo] I need developer to recreate the indicator as an Ea in MQL5 The core of the system will be a structured Market Structure engine that detects CHOCH (Change of Character) and BOS (Break of Structure) Signals will be confirmed once the indicator gave ( the bos/choch) no need to wait candle close
    Looking to purchase a Good forex or gold/ BTC trading EA and it's source code. Must be compatible with low budget like less than $500 accounts, Must need no manual intervention and run fully automated. If you are interested in selling me the source code, please share the Read only account access where the EA has already been running on, so i can check past performance and get an idea on how it works or runs. Dont
    Hello, I’m looking for an experienced MQL4/MQL5 developer to work with me on an ongoing basis. My clients request services such as: Converting TradingView Pine Script indicators/strategies into MT4 or MT5 Expert Advisors Converting MT4 EAs to MT5 (and MT5 to MT4) Compiling and fixing existing MQL4 / MQL5 EA code Adding simple features like alerts, SL/TP, lot size, and basic money management This job is for
    I am looking someone to create an EA based on my MACD Histo indicator / strategy from Pinescript. I will send it to you for you to replicate. The EA shall have: - Divergence length in bars, min and max values. - Pivot Logic - Entry on close of divergence confirmation bar. - Dynamic lot size dependent on SL/TP, in monetary value. - SL / TP in percent away from entry, separate values for long and short. - Time, day and
    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
    PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap
    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

    Project information

    Budget
    35+ USD

    Customer

    (13)
    Placed orders41
    Arbitrage count0