Tag: Kill Switch

  • When to Stop an EA: 7 Signals It’s Time to Reassess

    Risk Management · 8 min read

    The hardest decision in EA operation is not choosing when to start — it is choosing when to stop. Stop too early and you abandon a system that would have recovered. Stop too late and you allow a genuinely broken system to destroy more capital than necessary.

    These seven signals provide a structured framework for that decision — distinguishing between normal operating stress that should be tolerated and genuine malfunction or changed conditions that justify stopping.


    Signal 1: Drawdown Exceeds the Backtest Maximum

    If the live equity drawdown exceeds the maximum drawdown observed in a comprehensive backtest, the system is operating outside its validated range. This could indicate a market regime change, a broker execution issue, or a bug. Stop, investigate, and do not restart until the cause is identified.

    Signal 2: Kill Switch Triggers Repeatedly in a Short Period

    One kill switch trigger per year is within historical norms for adaptive martingale. Two triggers in three months indicates either the market has entered an extended structural trend that the system cannot handle, the lot size is too large for the account, or parameters need review. Do not auto-restart after a second trigger — investigate first.

    Signal 3: Recovery Cycles Are Consistently Longer Than Backtest Averages

    If cycles that historically resolved in 2-3 days are now taking 2-3 weeks routinely, market conditions have shifted from the system’s optimal environment. This is not necessarily a reason to stop — but it is a reason to reduce lot size and increase kill switch proximity monitoring.

    Signal 4: The EA Has Stopped Opening Trades

    If no new trades open during normally active market hours for more than 1-2 weeks, check the MT4 journal for errors. Common causes: AutoTrading disabled, broker connection lost, EA license expired, symbol or timeframe mismatch. This is a technical problem to resolve, not necessarily a strategy failure.

    Signal 5: Broker Spreads Have Materially Increased

    If your broker has widened spreads significantly — moving from 0.8 pip average to 2.0 pip average — the system’s profitability assumption has changed. Run a sensitivity analysis with the new spread level. If the system is not viable at the new spread, change brokers rather than continue on deteriorating execution.

    Signal 6: Developer Has Abandoned the EA

    No updates for 18+ months, no response to support questions, MQL5 product page showing “last updated 2022” — these indicate the developer has moved on. For now the EA may still work, but without maintenance it will eventually encounter a compatibility or performance issue with no resolution available.

    Signal 7: You No Longer Understand What the EA Is Doing

    If you have lost track of the system’s current state — how many orders are open, what the current cycle depth is, what conditions would trigger next actions — you have lost the oversight necessary for responsible operation. Stop, review the EA’s current state thoroughly, and only restart when you can clearly describe what the system is doing and why.

    What Is NOT a Reason to Stop

    A single losing month, a recovery cycle that is uncomfortable to watch, temporary drawdown within backtest historical maximums, or a period of low trade frequency in a ranging market — none of these justify stopping a well-designed EA. These are normal operating conditions, not malfunction signals.

    Try It on a Demo Account First

    All BotFXPro EAs include a free MQL5 demo. Run it in Strategy Tester before committing to live.

    Chronos Algo on MQL5 →
  • Risk of Ruin for Martingale EAs: How to Calculate Your True Worst Case

    Risk Management · 9 min read

    Risk of ruin is the probability that a trading system will eventually deplete the account beyond recovery. For pure martingale systems without a kill switch, the theoretical risk of ruin is 100% — given infinite time, a sustained trend will eventually arrive that exceeds the account’s ability to recover.

    For adaptive martingale systems with a defined kill switch, the risk of ruin changes significantly. The kill switch converts the question from “will this account eventually blow?” to “what is the probability of hitting the -65% threshold in any given period?” — and that probability can be estimated from historical data.


    The Kill Switch Changes the Math

    Without a kill switch, martingale risk of ruin is theoretically 1.0 (certain, eventually). With a -65% kill switch, the system will lose a defined maximum of 65% of the account in its worst single event. The account is not ruined — 35% remains. Whether you choose to continue trading after that loss is a decision, not a mathematical inevitability.

    True “ruin” for a kill-switch-protected system requires the kill switch to trigger repeatedly until the account drops below the minimum viable lot size. At 0.01 lots minimum, an account that started at $2,000 would need to trigger the kill switch approximately 5-6 times sequentially without profitable recovery periods in between to reach non-viability. Historical data suggests this sequence has extremely low probability.

    Estimating Kill Switch Trigger Frequency

    From the 13-year backtest history of adaptive martingale on EURUSD H1: the kill switch threshold was approached (within 15%) approximately 3-4 times and triggered 0-1 times depending on the exact parameter set. This represents approximately 1 severe drawdown event per decade.

    Using this frequency: the probability of a kill switch trigger in any given 12-month period is roughly 5-10% based on historical data. The probability of two consecutive triggers without recovery is the square of that — approximately 0.25-1%. True account ruin (6+ sequential triggers) is vanishingly small under normal market conditions.

    The Caveat: Black Swans

    Historical frequency is not the only risk. Unprecedented market events — a Euro breakup, a global currency crisis, a broker failure — can create conditions outside the historical envelope. No backtest can model what has never happened. This is why only capital you can genuinely afford to lose should be deployed in any trading system, martingale or otherwise.

    How Account Sizing Affects Risk of Ruin

    The key insight: the larger your account relative to the kill switch loss, the more opportunities you have to recover before reaching non-viability. A $10,000 account losing 65% leaves $3,500 — enough to restart at reduced lots and rebuild. A $1,500 account losing 65% leaves $525 — very tight margin for meaningful recovery.

    Practical implication: run the largest account you can comfortably allocate to the strategy. Not to make more money per trade — lot size handles that — but to give the system maximum runway for recovery sequences before reaching viability limits.

    The Most Honest Summary

    Adaptive martingale with a kill switch has low but non-zero probability of meaningful loss events. The kill switch makes those losses defined rather than unlimited. Correct sizing makes recovery from those losses viable. Historical frequency suggests such events are rare. Black swans exist and cannot be fully hedged.

    This is a fair and honest assessment of the risk profile — not worse and not better than it actually is. Treating it as such, rather than as either “safe” or “certain to blow,” is the foundation of responsible EA operation.

    Try It on a Demo Account First

    All BotFXPro EAs include a free MQL5 demo. Run it in Strategy Tester before committing to live.

    Chronos Algo on MQL5 →
  • QuantLot Expert Review: Controlled Martingale with Support and Resistance Entry

    EA Deep Dives · 9 min read

    QuantLot Expert is the most entry-selective EA in the BotFXPro lineup. While Chronos Algo and the Velocity/Sentinel pair use indicator-based entries, QuantLot identifies key support and resistance levels and only opens positions at statistically significant price zones.

    This approach changes the character of the system significantly — fewer trades, higher entry precision, and a recovery structure that is designed to resolve faster because the initial entry is already at a high-probability price level.


    Core Strategy Logic

    QuantLot’s entry mechanism identifies support and resistance zones from recent price history and waits for price to test those levels before opening a position. The logic is straightforward: price is more likely to reverse at a historically significant level than at an arbitrary intraday price.

    This is a meaningful distinction from pure martingale systems that open anywhere and rely entirely on recovery averaging. By starting at a level that already has reversal probability, QuantLot reduces the average depth of recovery cycles compared to blindly-entered systems.

    Why S/R Entry Matters for Martingale

    A martingale system started at a random midpoint has equal probability of moving further against the position before reversing. A system started at a support level already has structural buying pressure nearby. The S/R entry does not eliminate adverse movement — it statistically reduces how far adverse movement needs to go before a reversal occurs.

    Recovery Structure

    When a position moves against the entry, QuantLot adds recovery orders using controlled martingale scaling — up to a maximum of 8 orders per direction. The lot sizing follows a non-linear progression similar to other adaptive systems: early orders scale moderately, later orders increase at a higher multiplier.

    The key constraint: QuantLot operates in both directions simultaneously. It can have a buy recovery cycle and a sell recovery cycle running at the same time if price has swept through both a support and resistance level during volatile conditions. Both cycles are subject to the same 8-order cap.

    Portfolio Stop at -60%

    QuantLot’s portfolio-level kill switch triggers at -60% total account drawdown — slightly tighter than Chronos Algo’s -65%. This reflects the dual-direction structure: because the system can have simultaneous long and short recovery cycles, drawdown can compound faster in volatile trending markets, warranting a slightly earlier exit.

    When the -60% threshold is reached, all open positions in both directions close simultaneously and the EA pauses pending manual restart.

    Account Requirements

    Account Type Minimum Balance Base Lot Recommended Balance
    Micro $300 0.01 $500+
    Standard $2,000 0.1 $4,000+

    Live Performance Since January 2024

    QuantLot Expert has been running on a live account since January 2024. The live results on Myfxbook show performance across a range of market conditions — including both ranging periods where the S/R entry logic performs best and trending periods that stress the recovery structure.

    The equity drawdown figure on the live account should be compared directly to the backtest maximum drawdown — consistent figures indicate the live environment matches the simulated one. A significantly larger live drawdown would indicate the backtest spread or execution assumptions were unrealistic.

    Who QuantLot Is Best Suited For

    QuantLot suits traders who want martingale recovery logic combined with a more selective entry filter — reducing trade frequency while maintaining the recovery structure’s ability to close cycles profitably. The lower entry frequency means fewer recovery cycles initiated overall, which translates to less time spent in drawdown on average.

    The dual-direction capability makes it appropriate for traders who expect price to oscillate around a mean rather than trend strongly in one direction for extended periods.

    Try It on a Demo Account First

    All BotFXPro EAs include a free MQL5 demo. Run it in Strategy Tester before committing to live.

    QuantLot Expert on MQL5 →
  • Martingale Drawdown: What the -65% Kill Switch Actually Protects You From

    Martingale Decoded · Series A, Part 4 · 9 min read

    Every martingale EA eventually faces a scenario where the market does not recover before the system’s limits are reached. How the EA handles that scenario — and whether it handles it at all — determines whether you lose a defined amount or lose everything.

    The -65% kill switch in Chronos Algo is not a theoretical safety net. It has triggered in live trading. Understanding what conditions activate it, and what it actually protects you from, is essential context before running any martingale system.


    What the Kill Switch Actually Does

    When the total portfolio drawdown reaches -65% of account balance, the EA closes all open positions simultaneously — regardless of their state — and stops opening new trades.

    This means:

    • All floating losses are realized immediately
    • The remaining 35% of the account balance is preserved
    • The EA pauses — it does not restart automatically
    • The trader must manually decide whether to restart, withdraw, or pause

    Without the kill switch, martingale systems in a losing run would continue opening increasingly large positions indefinitely — until either the market reverses or the account margin call is hit. The kill switch converts a potentially total loss into a defined partial loss.

    What Market Conditions Trigger Deep Drawdown

    Deep drawdown on EURUSD H1 occurs when the pair makes sustained directional moves without meaningful retracement. The three historical scenarios that have been most challenging for mean-reversion systems are:

    Central Bank Policy Divergence

    When the Fed and ECB move in significantly different directions — as in 2014-2015 (Fed tapering, ECB QE) and 2022 (Fed aggressive hikes, ECB slow to respond) — EURUSD can trend 500-1,500 pips over months with minimal retracement. Recovery systems need either time or a policy reversal to close positions.

    Risk-Off Events with USD Safe Haven Flows

    During the COVID crash of March 2020, the USD spiked dramatically as investors sought safety. EURUSD dropped sharply in a matter of days. These moves are fast, not sustained — recovery systems that survived the initial drop were able to close positions within weeks.

    Geopolitical Shocks

    The 2022 Russia-Ukraine war caused EUR to weaken significantly as European energy costs spiked. Combined with the aggressive rate hike environment, this created one of the most challenging periods for EURUSD mean-reversion systems in the past decade.

    The Math of -65%

    The -65% threshold is not arbitrary. It was derived from backtesting the maximum drawdown observed across 13 years of EURUSD H1 data and calculating what threshold would have:

    • Never triggered during normal, recoverable drawdown periods
    • Triggered reliably before positions became unrecoverable
    • Left sufficient capital to restart the system after triggering

    A -30% kill switch, while psychologically appealing, triggers too often during normal operations — killing recovery cycles that would have closed profitably. A -80% kill switch leaves too little capital for meaningful recovery. -65% represents the historical optimum for this specific strategy on this specific pair.

    After a Kill Switch Trigger

    With 35% of the account remaining, a trader has options. They can restart the EA at a reduced lot size proportional to the new balance, withdraw the remaining capital, or pause trading and allow the account to recover manually. The kill switch preserves the choice. Without it, there is no choice left.

    Drawdown Is Not Loss

    This distinction matters. Floating drawdown — unrealized losses from open positions — is not permanent until positions close. A martingale system in 40% drawdown has not lost 40%; it has open positions that are currently underwater. If the market reverses and closes them profitably, that 40% never becomes a realized loss.

    This is why watching the equity curve of a martingale EA during a recovery cycle is psychologically difficult. The account may look like it has lost significantly — but the positions are still open, and recovery is still possible.

    The kill switch converts floating loss to realized loss only when the threshold is reached. Everything before that is unrealized — and potentially recoverable.

    What to Do When Drawdown Gets Deep

    • Do not panic close positions manually. Manual intervention during a recovery cycle often locks in losses that would have recovered naturally. The EA’s logic is built for this scenario.
    • Check whether the drawdown is within historical norms. A 35-40% drawdown on Chronos Algo is significant but not unprecedented. Compare to the backtest drawdown profile before acting.
    • Do not add capital during deep drawdown. Adding funds mid-cycle changes the balance calculations and can affect kill switch behavior unpredictably.
    • Trust the system or exit cleanly. If you cannot tolerate the current drawdown level, exit all positions cleanly rather than waiting and hoping. Partial closures complicate the recovery math.

    Next in the Martingale Decoded Series

    Part 5: Five Martingale EAs Compared — Backtest Results. We put five publicly available martingale systems side by side on the same EURUSD H1 dataset and compare drawdown, recovery frequency, and return profiles.

    Publishing May 20, 2026

    Try It on a Demo Account First

    All BotFXPro EAs include a free MQL5 demo. Run it in Strategy Tester before committing to live.

    Chronos Algo — Live Since 2022 on MQL5 →
  • Adaptive vs Classic Martingale: How Chronos Algo Does It Differently

    Martingale Decoded · Series A, Part 2 · 10 min read

    In Part 1 of this series, we covered the fundamentals of martingale: what it is, where it came from, and the three main variants used in forex EAs.

    In Part 2, we go deeper into the specific engineering that separates classic martingale from an adaptive system — using Chronos Algo as a real example of how these controls are built in practice.


    Classic Martingale: The Pure Version

    Classic martingale is mathematically simple. Every time a position closes at a loss, the next position is opened at double the lot size. This continues until a winning trade recovers the entire sequence.

    Here is the lot progression for a classic system starting at 0.01 lots:

    Order Lot Size Multiplier vs Order 1 Total Exposure
    10.011x0.01
    20.022x0.03
    30.044x0.07
    40.088x0.15
    50.1616x0.31
    60.3232x0.63
    70.6464x1.27
    81.28128x2.55

    By order 8, a pure martingale system starting at 0.01 lots has opened 1.28 lots on one trade. The total position exposure is 2.55 lots — 255 times the initial size. For a $1,000 account, this is account-destroying territory.

    Classic martingale has no built-in stopping point. Order 9 would be 2.56 lots. Order 10 would be 5.12. There is no floor.

    Adaptive Martingale: The Chronos Algo Approach

    Chronos Algo uses a modified martingale structure that looks similar on the surface but differs in three critical ways: the scaling multiplier changes across the sequence, there is a hard cap at 8 orders, and there is a portfolio-level kill switch.

    Here is how the lot scaling works in practice:

    Order Multiplier Classic Equivalent Difference
    11x1x
    21x2x-1x lighter
    32x4x-2x lighter
    44x8x-4x lighter
    58x16x-8x lighter
    612x32x-20x lighter
    718x64x-46x lighter
    827x128x-101x lighter

    The key insight: by order 8, the Chronos Algo approach is running 27x the base lot versus 128x for classic martingale. That is nearly 5x less peak exposure at the most dangerous point of a recovery cycle.

    The Three Structural Controls

    1. Non-Uniform Lot Scaling

    Orders 1 and 2 open at the same base lot size — no doubling on the second order. From order 3 to 5, the scaling is 2x per step (similar to classic). From order 6 onwards, scaling shifts to 1.5x per step instead of 2x.

    This graduated approach means early recovery cycles are not as aggressive as classic martingale. If the market reverses quickly (which it often does), the EA has taken on minimal additional risk. The heavier scaling only kicks in when the sequence is already deep.

    2. Hard Cap at 8 Orders

    Classic martingale has no cap. Chronos Algo stops at 8 orders per recovery cycle. No order 9 is ever opened.

    This means the system accepts that some recovery cycles will not close profitably. When the market moves far enough that 8 orders cannot recover the loss, the portfolio kill switch takes over instead of compounding further.

    3. Portfolio-Level Kill Switch at -65%

    If the total account drawdown reaches -65%, all positions across all cycles close simultaneously and the EA stops trading.

    This is a critical control that pure martingale lacks entirely. It means the worst-case outcome is a known, defined loss rather than a complete account wipe. The remaining 35% of the account balance is preserved.

    Why -65% and Not -30%?

    A tighter kill switch sounds safer, but it triggers more frequently during normal drawdown periods that would otherwise recover. A -65% threshold gives the EA enough room to complete legitimate recovery cycles while still protecting against catastrophic, unrecoverable positions. The appropriate threshold depends on the EA’s backtest drawdown profile — this number comes from 13 years of historical data on EURUSD H1.

    What This Means in Practice

    The combination of these three controls changes the risk profile fundamentally:

    • Worst-case is defined — you know the maximum possible loss before you start
    • Peak exposure is lower — the 1.5x scaling in the final stages reduces the lot size at maximum depth by 5x compared to classic
    • The system can survive rare events — the kill switch has prevented account wipes during major market moves since the EA went live in 2022

    None of this eliminates risk. Drawdown still happens. Recovery cycles still look uncomfortable. But the system operates within known limits rather than theoretically infinite ones.

    Classic vs Adaptive: A Direct Comparison

    Adaptive Martingale (Chronos Algo)

    • Defined worst-case loss (-65% max)
    • 8-order cap on every cycle
    • Non-uniform lot scaling (lower peak exposure)
    • Entry signal required for the first order
    • Suitable for long-term, capital-preserved operation

    Classic Martingale

    • Unlimited downside — no defined worst case
    • No order cap — can compound to 128x or beyond
    • Aggressive doubling accelerates drawdown in trends
    • No entry filter — opens blindly
    • Account wipe is a realistic outcome in strong trends

    The adaptive version still carries risk. It is still martingale. But the engineering around it transforms a theoretically unlimited exposure into a bounded, manageable one.


    Next in the Martingale Decoded Series

    Part 3: How to Size Your Account for a Martingale EA. We walk through the exact calculation for determining the correct starting lot size relative to your balance — the single most important decision before going live.

    Publishing May 15, 2026

    Try It on a Demo Account First

    All BotFXPro EAs include a free MQL5 demo. Run it in Strategy Tester before committing to live.

    Chronos Algo on MQL5 →