Şartname
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.
-
Original basket direction
-
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.