Algorion ScalpMaster Bleed Protection
- Experts
- Versione: 1.483
- Attivazioni: 5
=== ALGORION-ScalpMaster Bleed Protection v1.4.6 ===
An Expert Advisor for MetaTrader 5 featuring adaptive regime
detection and multi-layer capital protection system. Designed
for XAUUSD (Gold) and index trading with configurable risk
parameters for different trading styles.
--- CORE FEATURES ---
- Adaptive regime detection (Trend / Scalp / Skip modes)
- ADX-based market condition analysis on M30 timeframe
- ATR-adjusted dynamic position sizing
- Multi-symbol support (up to 3 instruments)
- Equity-based profit target with confirmation window
- Market-safe mode with automatic margin capping
- Broker-aware volume limit detection
--- REGIME DETECTION LOGIC ---
The EA analyzes market conditions and switches between modes:
TREND MODE (ADX > 30):
Configured for strong directional moves
Default: Risk 12%, SL 2.0x ATR, TP 3.5x ATR, Hold 8h
SCALP MODE (ADX 18-30):
Configured for range-bound conditions
Default: Risk 7%, SL 1.0x ATR, TP 1.5x ATR, Hold 4h
SKIP MODE (ADX < 18):
No trades during low-volatility periods
Uses 3-bar confirmation to prevent false switches
--- PROTECTION LAYERS ---
Layer 1 - Daily Loss Lockout:
Stops trading if daily loss reaches configured limit.
Auto-resets on next trading day.
Layer 2 - Bleed Stop:
Active before account grows past configured threshold.
Designed to catch losing sequences early.
Layer 3 - Peak Drawdown Protection:
Activates after account grows past activation threshold.
Monitors drawdown from peak equity.
Layer 4 - Hard Drawdown Stop:
Ultimate safety threshold for equity protection.
Global Floor Protection:
Trailing profit lock with configurable give-back percentage.
--- INPUT PARAMETERS ---
INSTRUMENTS:
InpSymbol1 = XAUUSD (primary symbol)
InpMaxPosSym1 = 5 (max positions symbol 1)
InpSymbol2Choice = SYM_NONE (optional secondary)
InpMaxPosSym2 = 3 (max positions symbol 2)
InpSymbol3Choice = SYM_NONE (optional tertiary)
InpMaxPosSym3 = 2 (max positions symbol 3)
REGIME DETECTION:
InpRegimeTF = M30 (regime analysis timeframe)
InpADXSkipBelow = 18.0 (skip trading threshold)
InpADXTrendAbove = 30.0 (trend mode threshold)
InpEMAFastRegime = 21
InpEMASlowRegime = 50
InpConfirmBars = 3
PROFIT TARGET:
InpProfitTarget = 850.0 (equity target %)
InpTargetConfirmSecs = 60 (confirmation window)
RISK MANAGEMENT:
InpMaxDailyLoss = 30.0 (% of balance)
InpMaxDrawdown = 70.0 (hard equity DD %)
InpMaxPeakDD = 30.0 (drop from peak %)
InpPeakDDActivatePct = 10.0 (activation growth %)
InpMaxBleedDD = 40.0 (bleed limit %)
InpBleedDeactivatePct = 20.0 (bleed disable threshold)
InpMaxDailyTrades = 10
InpMaxTotalPos = 10
SCALP MODE:
InpScalpRisk = 7.0
InpScalpSL = 1.0 (x ATR)
InpScalpTP = 1.5 (x ATR)
InpScalpHoldHrs = 4
TREND MODE:
InpTrendRisk = 12.0
InpTrendSL = 2.0 (x ATR)
InpTrendTP = 3.5 (x ATR)
InpTrendHoldHrs = 8
GLOBAL FLOOR:
InpEnableFloor = true
InpFloorGiveBack = 40.0 (%)
InpFloorActivate = 40.0 (%)
InpFloorCoolDown = 15 (minutes)
STRATEGY INDICATORS:
InpEMAFast = 9
InpEMASlow = 21
InpRSIPeriod = 14
InpRSIMin = 30.0
InpRSIMax = 70.0
InpATRPeriod = 14
InpMinATRPoints = 50.0
InpADXPeriod = 14
InpMinADX = 20.0
MARKET SAFETY:
InpMarketSafeMode = true (recommended)
InpMaxMarginPerTrade = 10.0 (% of free margin)
InpAbsoluteMaxRiskPct = 2.0 (safety cap)
InpMaxLotsPerTrade = 1.0 (hard cap, 0 = disabled)
CONTEST:
InpMaxDays = 14
InpEnableDebug = true
InpMagicNumber = 20260701
--- SUGGESTED CONFIGURATIONS ---
CONSERVATIVE (lower-risk operation):
InpScalpRisk = 2.0
InpTrendRisk = 3.0
InpMaxDailyLoss = 5.0
InpMaxBleedDD = 8.0
InpMaxPeakDD = 8.0
InpProfitTarget = 50.0
BALANCED (moderate operation):
InpScalpRisk = 5.0
InpTrendRisk = 7.0
InpMaxDailyLoss = 15.0
InpMaxBleedDD = 25.0
InpMaxPeakDD = 20.0
InpProfitTarget = 200.0
AGGRESSIVE (default settings):
InpScalpRisk = 7.0
InpTrendRisk = 12.0
InpMaxDailyLoss = 30.0
InpMaxBleedDD = 40.0
InpMaxPeakDD = 30.0
InpProfitTarget = 850.0
--- REQUIREMENTS ---
Platform: MetaTrader 5
Timeframe: M15 (recommended)
Symbol: XAUUSD (primary configuration)
Account: Hedging or Netting
Leverage: 1:100 or higher recommended
Broker: Any MT5 broker with XAUUSD
Supported index symbol variants (auto-select):
US100, NAS100, NDX100, NDX, USTEC, US100Cash,
US100.cash, NASDAQ100, NAS100Cash, NDXm, US100m,
NAS100USD, or custom name via SYM_CUSTOM
--- USAGE NOTES ---
1. Attach to XAUUSD M15 chart
2. Select desired configuration by adjusting inputs
3. Enable Auto Trading in MetaTrader 5
4. Test on demo account before live use
5. Monitor performance and adjust as needed
--- RISK DISCLOSURE ---
Trading financial instruments involves substantial risk.
Backtesting results are historical simulations and do not
represent future performance. Live trading results may differ
significantly from backtests due to spread, slippage, and
market conditions.
Use only capital you can afford to lose.
Always test on demo account before live deployment.
Adjust risk parameters according to your risk tolerance.
No trading system produces winning results in all conditions.
--- TECHNICAL SPECIFICATIONS ---
Language: MQL5
Platform: MetaTrader 5 build 3550+
Account Type: Hedging or Netting
File Size: Approximately 80KB
Includes: Trade.mqh, PositionInfo.mqh, SymbolInfo.mqh
--- SUPPORT ---
For technical questions and setup assistance, please use
the MQL5 Market comments section on this product page.
Response time varies based on inquiry volume.
--- VERSION ---
Version: 1.4.6
Type: Expert Advisor
