Auto Exit Locking Position to BEP
- ユーティリティ
- バージョン: 1.1
- アクティベーション: 5
AutoExit Locking Position: The Ultimate Hedge & Drawdown Recovery Manager
Are you stuck in a locked or hedged position with high drawdown? AutoExit Locking Position (KT Hedge Exit) is a specialized, exit-only utility Expert Advisor designed to safely and mathematically untangle complex hedged positions without adding new risks to your account.
Unlike grid or martingale recovery systems that open more trades and consume free margin, this EA strictly NEVER opens new trades. It focuses purely on managing your existing open positions, partially closing them at optimal market conditions until your equity is restored.
🌟 Key Advantages
-
Zero New Exposure: The algorithm never opens new buy or sell orders. It only reduces your current market exposure, protecting your remaining margin.
-
Smart Rebound Execution: Uses Average True Range (ATR) to detect localized market extremes. It executes partial closures only when the price rebounds, securing better exit prices rather than closing at the worst possible moments.
-
Proportional Hedge Reduction: In its default mode, it closes an equal percentage of both Buy and Sell volumes simultaneously. This maintains your net exposure ratio while shrinking the overall lot size and freeing up margin.
-
Emergency Margin Protection: If your margin level drops below a critical threshold (e.g., 200%), the EA instantly bypasses normal conditions and aggressively cuts a large portion of the lots (e.g., 50%) to prevent a margin call or stop out.
-
Market Safety Gates: Built-in spread filters and volatility checks (ATR Pause) prevent the EA from executing closures during extreme news spikes, slippage events, or widening spreads.
-
Crash-Proof State Memory: The EA constantly saves its recovery cycle data using terminal Global Variables. If your MT5 restarts or your VPS crashes, it will seamlessly resume the exact recovery process.
⚙️ How It Works
-
Monitoring (Standby): Once attached to a chart, the EA tracks your starting equity and current drawdown. It does nothing until the drawdown hits your predefined trigger level.
-
Armed (Exit Mode): When the target drawdown (e.g., 10%) is reached, the EA enters "Exit Mode" and begins tracking price highs and lows.
-
Smart Partial Close: The EA waits for the price to move by a specific ATR multiplier (Rebound) or for a timeout period to expire. It then calculates the optimal percentage of lots to close based on the severity of the drawdown.
-
Volume Slicing: It perfectly calculates your broker's minimum volume steps to slice off small portions of your locked positions.
-
Cycle Completion: Once your equity recovers back to the starting point and the total basket profit is non-negative, the EA closes all remaining managed trades and resets for a new cycle.
📊 Built-in Presets
To make setup effortless, the EA includes ready-to-use presets:
-
Conservative: Triggers at 10% drawdown. Closes 1% to 5% of lots proportionally from both Buy and Sell sides (Hedge Pair mode). Waits for a 1.0 ATR rebound.
-
Adaptive: Triggers earlier at 5% drawdown. Aggressively cuts 1% to 10% of lots focusing on the most profitable trades first (Profit First mode) with a faster 0.8 ATR rebound.
-
Custom: Unlocks full access to tweak trigger percentages, ATR retracements, timeout hours, maximum/minimum close percentages, and close modes (Hedge Pair, Profit First, Oldest First).
🛠️ Setup Instructions
-
Ensure your MT5 account is a Hedging account (not Netting).
-
Attach the EA to any chart (M15 recommended for optimal ATR calculations).
-
If managing a specific EA's trades, input that EA's MagicNumber . Leave as 0 to manage all manual and automated trades on the current symbol.
-
Select your preferred Preset or customize your own parameters.
-
Leave the EA running on a VPS. The on-chart dashboard will display real-time status, equity, basket P/L, and ATR metrics.
