Need to add hedging and recovery feature to an old EA

Specifiche

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. 

    Con risposta

    1
    Sviluppatore 1
    Valutazioni
    (22)
    Progetti
    29
    3%
    Arbitraggio
    4
    25% / 0%
    In ritardo
    3
    10%
    Gratuito
    2
    Sviluppatore 2
    Valutazioni
    (51)
    Progetti
    71
    37%
    Arbitraggio
    4
    25% / 75%
    In ritardo
    1
    1%
    Gratuito
    Pubblicati: 1 codice
    3
    Sviluppatore 3
    Valutazioni
    (111)
    Progetti
    184
    25%
    Arbitraggio
    25
    16% / 76%
    In ritardo
    16
    9%
    Gratuito
    4
    Sviluppatore 4
    Valutazioni
    (22)
    Progetti
    28
    7%
    Arbitraggio
    9
    33% / 33%
    In ritardo
    1
    4%
    In elaborazione
    5
    Sviluppatore 5
    Valutazioni
    (75)
    Progetti
    80
    6%
    Arbitraggio
    46
    11% / 54%
    In ritardo
    7
    9%
    In elaborazione
    6
    Sviluppatore 6
    Valutazioni
    (13)
    Progetti
    20
    40%
    Arbitraggio
    3
    0% / 67%
    In ritardo
    3
    15%
    Gratuito
    7
    Sviluppatore 7
    Valutazioni
    (20)
    Progetti
    23
    39%
    Arbitraggio
    4
    25% / 50%
    In ritardo
    1
    4%
    Gratuito
    Pubblicati: 6 codici
    8
    Sviluppatore 8
    Valutazioni
    (3)
    Progetti
    3
    0%
    Arbitraggio
    1
    0% / 100%
    In ritardo
    0
    Gratuito
    9
    Sviluppatore 9
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    10
    Sviluppatore 10
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    11
    Sviluppatore 11
    Valutazioni
    (1)
    Progetti
    1
    0%
    Arbitraggio
    1
    0% / 0%
    In ritardo
    0
    In elaborazione
    12
    Sviluppatore 12
    Valutazioni
    (4)
    Progetti
    4
    0%
    Arbitraggio
    1
    0% / 100%
    In ritardo
    0
    Gratuito
    13
    Sviluppatore 13
    Valutazioni
    (3)
    Progetti
    1
    100%
    Arbitraggio
    3
    0% / 100%
    In ritardo
    0
    Gratuito
    14
    Sviluppatore 14
    Valutazioni
    (319)
    Progetti
    574
    35%
    Arbitraggio
    83
    31% / 45%
    In ritardo
    207
    36%
    Gratuito
    15
    Sviluppatore 15
    Valutazioni
    (636)
    Progetti
    1008
    47%
    Arbitraggio
    33
    36% / 36%
    In ritardo
    99
    10%
    In elaborazione
    Pubblicati: 6 codici
    16
    Sviluppatore 16
    Valutazioni
    (71)
    Progetti
    103
    20%
    Arbitraggio
    6
    0% / 83%
    In ritardo
    3
    3%
    Gratuito
    17
    Sviluppatore 17
    Valutazioni
    (45)
    Progetti
    53
    57%
    Arbitraggio
    2
    100% / 0%
    In ritardo
    1
    2%
    Gratuito
    Pubblicati: 5 codici
    18
    Sviluppatore 18
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    19
    Sviluppatore 19
    Valutazioni
    (1)
    Progetti
    1
    100%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    20
    Sviluppatore 20
    Valutazioni
    (24)
    Progetti
    32
    38%
    Arbitraggio
    4
    50% / 25%
    In ritardo
    5
    16%
    In elaborazione
    21
    Sviluppatore 21
    Valutazioni
    (10)
    Progetti
    17
    18%
    Arbitraggio
    2
    0% / 50%
    In ritardo
    3
    18%
    Caricato
    22
    Sviluppatore 22
    Valutazioni
    (31)
    Progetti
    38
    53%
    Arbitraggio
    2
    50% / 50%
    In ritardo
    3
    8%
    Gratuito
    23
    Sviluppatore 23
    Valutazioni
    (6)
    Progetti
    4
    0%
    Arbitraggio
    5
    0% / 100%
    In ritardo
    0
    Gratuito
    24
    Sviluppatore 24
    Valutazioni
    (10)
    Progetti
    14
    43%
    Arbitraggio
    0
    In ritardo
    3
    21%
    Gratuito
    25
    Sviluppatore 25
    Valutazioni
    (271)
    Progetti
    553
    50%
    Arbitraggio
    57
    40% / 37%
    In ritardo
    227
    41%
    In elaborazione
    26
    Sviluppatore 26
    Valutazioni
    (8)
    Progetti
    8
    0%
    Arbitraggio
    2
    50% / 0%
    In ritardo
    1
    13%
    In elaborazione
    27
    Sviluppatore 27
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    28
    Sviluppatore 28
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    29
    Sviluppatore 29
    Valutazioni
    (33)
    Progetti
    36
    33%
    Arbitraggio
    5
    0% / 80%
    In ritardo
    0
    In elaborazione
    Pubblicati: 2 codici
    30
    Sviluppatore 30
    Valutazioni
    (73)
    Progetti
    257
    53%
    Arbitraggio
    16
    50% / 38%
    In ritardo
    83
    32%
    Gratuito
    31
    Sviluppatore 31
    Valutazioni
    (2)
    Progetti
    2
    0%
    Arbitraggio
    3
    0% / 100%
    In ritardo
    1
    50%
    Gratuito
    32
    Sviluppatore 32
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    33
    Sviluppatore 33
    Valutazioni
    Progetti
    0
    0%
    Arbitraggio
    0
    In ritardo
    0
    Gratuito
    Ordini simili
    I am looking for an experienced MQL5 developer and trader to create a non-repainting BUY/SELL indicator for MT5, designed for scalping on the M5 and M15 timeframes, with a focus on high-quality trading signals. Requirements: Clear and reliable BUY/SELL signals. Non-repainting signals confirmed on closed candles. High-quality entries with minimal false signals. Suitable for scalping, especially Gold (XAUUSD). Popup
    PROJECT: Automatic Gold and Forex Trading Robot for MetaTrader 5 (MQL5) I want a fully automated Expert Advisor (EA) for MetaTrader 5 that can analyze the market and automatically open, manage and close trades on Gold and selected Forex currency pairs. 1. TRADING INSTRUMENTS - Gold: XAUUSD - Forex: EURUSD, GBPUSD and USDJPY, subject to broker availability. - Allow the user to enable or disable each trading symbol. -
    Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &
    I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
    We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
    Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
    I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
    Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: ​ Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. ​ Core Trading Logic: ​Execute automatic Buy and Sell trades using high-probability entry signals. ​Target a strict 90% theoretical win-rate structure through
    i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
    MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical

    Informazioni sul progetto

    Budget
    35+ USD