Risk Engine

Grid & Martingale
Detection Engine

Identify and restrict progressive lot-doubling, coordinated grid orders, and compounding position abuse before they create catastrophic exposure. Real-time pattern recognition with configurable sensitivity thresholds and instant enforcement.

Real-Time
Pattern Scanning
3+
Detection Layers
100%
Auto-Enforced
Grid Pattern Detected
Martingale x4 Flagged
Martingale Sequence — Account #7302
Trade
#1
Lot Size
0.10
Result
-$40
Trade
#2
Lot Size
0.20
Result
-$82
Trade
#3
Lot Size
0.40
Result
-$168
Trade
#4
Lot Size
0.80
Status
BLOCKED
⚠ Martingale multiplier x2 detected across 3 consecutive losses — 4th position blocked

Capabilities

Stop Risk-Stacking Before It Compounds

Grid and martingale strategies share a common trait — they look like profitable trading until a single adverse move wipes the account. The detection engine catches both before the firm bears the loss.

Martingale Multiplier Detection
Tracks consecutive same-direction trades on the same instrument. When lot sizes follow a multiplier progression (1x → 2x → 4x → 8x) across losses, the sequence is flagged and next position blocked.
Grid Order Pattern Recognition
Detect equidistant pending order grids placed above and below the current price — a hallmark of grid trading systems that build unlimited risk as price trends away from the grid origin.
Max Concurrent Exposure Limit
Enforce a maximum number of open positions per instrument or per direction at any given time — preventing both grid and averaging strategies from stacking unlimited correlated exposure.
Averaging Down Detection
Identify accounts that systematically add to losing positions in the same direction — a form of martingale that doesn't always double but still creates compounding drawdown risk across multiple adds.

Detected Patterns

Every Variant We Catch

Both classic and obfuscated variants of grid and martingale — including blended strategies designed to evade single-rule detection.

Critical
Classic Martingale (x2 Multiplier)
Doubling the lot size after every losing trade on the same instrument and direction — flagged when 3+ consecutive doublings are detected within a single session or across sessions within 24 hours.
Critical
Equidistant Grid System
5+ pending orders placed at equal price intervals (e.g., every 20 pips) above or below current market price — a signature of automated grid EAs placing unlimited buy-stop / sell-stop grids.
High
Fibonacci Martingale
Lot size progression following Fibonacci multipliers (1x, 1x, 2x, 3x, 5x, 8x) rather than simple doubling — a common obfuscation technique that produces the same compounding exposure trajectory.
High
Averaging Down Pattern
Systematic addition to losing positions in the same direction across 3+ entries — even without strict doubling, the aggregate exposure and correlation create martingale-equivalent drawdown risk.
High
Bi-Directional Grid Hedging
Grids placed simultaneously in both buy and sell directions on the same instrument — designed to look like hedging but creating compounding unrealised loss as one side trends deeper into drawdown.
Medium
Progressive Lot Recovery
Increasing lot sizes after losses in a non-mathematical but trend-based progression — detected by monitoring the correlation between prior trade result and next trade lot size across rolling windows.

How It Works

Multi-Layer Pattern Recognition

Sequential position analysis, lot-size regression, and pending order geometry — three independent detection layers working in parallel.

1
Trade Sequence Indexing
Every closed trade is indexed against the account's history on the same instrument and direction. The sequence is analysed for lot-size progression patterns — both within a session and across consecutive trading days.
2
Multiplier Ratio Analysis
The lot-size ratio between consecutive same-direction trades is calculated. When the ratio consistently matches a multiplier (2x, 1.5x, Fibonacci) across 3+ sequential losses, a martingale signal is generated.
3
Pending Order Geometry Scan
All pending orders are mapped to a price-distance matrix. Equal-interval spacing across 5+ orders on the same instrument triggers a grid detection signal — flagging the account regardless of current open trades.
4
Concurrent Exposure Check
Live position count per instrument and per direction is compared against your configured maximum. If a new trade would breach the maximum concurrent exposure threshold, the order is rejected with a clear error code.
5
Composite Abuse Score
Martingale, grid, and averaging signals are combined into a single abuse score per account. Score thresholds determine whether the account is warned, flagged, trade-blocked, or suspended automatically.
6
Enforcement & Audit Trail
Every detected sequence, blocked order, and enforcement action is logged with full position detail — instrument, lot sizes, timestamps, and the specific pattern signal that triggered the action — for complete audit compliance.

Grid/Martingale Risk Panel
Account #7302 — EURUSDMartingale x4Blocked
Account #6614 — XAUUSDGrid: 8 OrdersFlagged
Account #9221 — GBPUSDAveraging x3Warned
Account #5503 — USDJPYScore: 8Clean
Account #4418 — AUDUSDScore: 2Clean
Precision Detection

Catches Obfuscation — Not Just the Obvious

Sophisticated traders disguise martingale with fractional multipliers, non-round lot sizes, and instrument switching. The multi-layer engine correlates across instruments and sessions to catch obfuscated variants that single-rule systems miss.

  • Cross-session sequence analysis — patterns spanning multiple trading days detected
  • Fuzzy multiplier matching — catches 1.8x, 2.1x variants alongside exact 2x doubling
  • Configurable sensitivity — tune false-positive tolerance per account phase independently
  • Full sequence export per flagged account for manual review and dispute resolution

3+
Independent Detection
Layers Per Account
6+
Martingale & Grid
Variants Detected
99.9%
Pattern Recognition
Accuracy
100%
Automated Enforcement,
Zero Delay

Get Started

Stop the Compounding
Before the Drawdown Hits

Grid and martingale strategies always look profitable until they don't. Catch the sequence early and protect your firm's capital before the inevitable large adverse move.

Grid Pattern Detection
Martingale Sequence Flagging
3-Layer Detection Engine
Full Audit Trail