Stopout auto calculate
- ユーティリティ
- バージョン: 1.0
# StopOut Auto Calculator — Pre-Trade Margin & Stop-Out Risk Simulator for MT5
**Never get liquidated before your Stop-Loss again.**
Are you tired of setting a strict Stop-Loss (SL) on your trades, only to have your broker forcefully liquidate (Stop-Out) your entire account before price even touches your SL line?
Most traders believe having a Stop-Loss guarantees risk control. **In reality, it doesn't.**
Brokers enforce a **Stop-Out threshold (typically 50% or 20% Margin Level)**. When you have existing positions and open another trade, your Used Margin increases. If the market retraces, your Margin Level collapses into the Stop-Out zone—triggering total liquidation midway through your planned trade.
**StopOut Auto Calculator** is the ultimate pre-trade risk simulation tool designed to eliminate this hidden threat forever.
---
### 🛡️ 100% PURE CALCULATOR — ZERO TRADING RISK
* **Read-Only Engine:** This tool **NEVER executes or modifies any live trades**.
* There are no trade execution buttons. It is a mathematical risk radar designed strictly to protect your capital.
---
### 🌟 KEY FEATURES
1. **Automatic Multi-Position Portfolio Scan:**
* Scans all currently open positions across your entire account in real time (whether opened from mobile, web, or other charts).
* Calculates the exact net loss in account currency if open positions hit their Stop-Loss using MT5's native `OrderCalcProfit()` engine.
2. **Pre-Trade "What-If" Simulation:**
* Before placing an order, simulate your next trade directly on your chart.
* Tests: *"If both my existing trades and this new trade hit Stop-Loss simultaneously, will my account survive or trigger Stop-Out?"*
3. **Instant Visual Decision Verdict:**
* 🟢 **SAFE (TRADE ALLOWED):** Both entry margin and SL margin stay comfortably above Stop-Out threshold.
* 🚨 **DANGER! STOP-OUT BEFORE SL:** Critical warning! Bybit/Broker Stop-Out will liquidate your account at X% of the SL distance before your SL price is hit. **DO NOT OPEN.**
* 🚨 **CRITICAL! STOP-OUT AT ENTRY:** Required margin exceeds account capacity (Entry Margin Level ≤ Stop-Out threshold). Instant liquidation at entry.
* ⚠️ **WARNING:** Margin level enters the caution zone (≤ 60%). Reduce lot size.
4. **Interactive On-Chart Dashboard:**
* **Quick Lot Adjuster:** `[-1] [-0.10] [-0.01] [+0.01] [+0.10] [+1]`
* **Quick Risk Adjuster ($):** `[-50] [-10] [-1] [+1] [+10] [+50]`
* **Simulation Direction:** One-click toggle between `[ Long ]` and `[ Short ]`.
* **Minimize [-] & Close [X]:** Collapse into a slim bar or cleanly remove with one click.
5. **Universal CFD, Crypto & Forex Support:**
* Works seamlessly on Forex pairs, Gold (XAUUSD), Indices (NAS100, US30), Commodities, and Cryptos (BTC, ETH, SOL, etc.).
* Built-in fallback margin engine handles non-standard broker symbols and custom leverage setups.
---
### ⚙️ PARAMETERS & SETTINGS
* **Symbol Name:** Leave empty to automatically use the current chart symbol.
* **Position Direction:** Default simulated order direction (BUY / SELL).
* **Base Lot Size:** Default test volume (e.g., 0.10 or 1.00).
* **SL Risk Per Trade ($):** Your standard USD risk per position (e.g., $10, $50, $250).
* **Stop-Out Level (%):** Your broker's Stop-Out threshold (Default = 50.0%).
* **Warning Level (%):** Buffer zone threshold for cautionary alerts (Default = 60.0%).
* **Panel Coordinates (X, Y):** Customize dashboard placement on your chart.
---
### 💡 HOW TO USE IN 3 STEPS
1. Attach **StopOut Auto Calculator** to any chart.
2. Select your planned Lot size and SL Risk ($) using the intuitive on-chart buttons.
3. Look at the **STATUS** row:
* If **GREEN**, open your trade with full confidence.
* If **RED**, decrease your lot size or close an existing trade before entering!
*Developed with precision for serious traders.*
