32 Solid Risk Checks
Hard-coded mathematical precision protecting your capital before any order reaches the exchange.
Daily Loss Limit (Drawdown Governor)
Maximum Loss Per Day Circuit BreakerContinuously polls your account Net Liquidation Value (NLV) in real time against your day opening equity balance.
Evaluates real-time MTM every tick. If daily loss breaches the user-defined threshold (e.g. -2% or ₹10,000), it cancels all pending orders, flattens open positions at market, and halts bot execution for the day.
Without a daily loss limit, consecutive losing trades or flash crashes can wipe out weeks of profits in a single afternoon session.
Max Entry Signal vs. Execution Price Gap & Slippage Guard
Entry Call Deviation & Bid-Ask BarrierCompares real-time exchange top-of-book quotes against the strategy entry call price before routing any order.
Intercepts market and limit orders to verify bid-ask depth and signal-to-LTP delta. If the gap between entry call price and live executable price exceeds the configured threshold, the entry is blocked.
Market orders executed in fast-moving options during news breaks can fill 10% to 20% away from the intended entry signal.
Fat-Finger Maximum Order Size Trap
Quantity & Lot Multiplier BoundaryHardcoded upper bounds on maximum shares or lots allowed per individual order dispatch.
Rejects any order payload with quantity greater than authorized account limits (e.g., maximum 900 NIFTY quantity per order), even if strategy logic accidentally calculates an absurd value.
A calculation bug placing 1,800 lots instead of 18 lots can trigger instantaneous broker margin penalty and immediate account freeze.
Exchange Upper & Lower Circuit Breaker Guard
Locked Price Band Collision PreventionCross-checks live market depth and price bands published by the exchange before dispatching buy or sell orders.
Queries instrument circuit bands from broker WebSocket. Blocks BUY orders if price is locked at Upper Circuit, and blocks SELL orders if price is locked at Lower Circuit.
Buying into a circuit-locked stock can trap capital for consecutive trading days, resulting in massive trapped gaps on reversal.
Atomic Multi-Leg Basket Margin Pre-Check
Hedge Benefit Validation Before Leg FiringValidates that the broker account holds sufficient margin with exchange hedge benefit prior to leg dispatch.
Fires long hedge legs first to establish exchange margin credit, verifies execution confirmation via WebSocket in <50ms, and only then fires short legs to ensure margin efficiency.
If the short leg fires first before the protective long leg, broker RMS immediately rejects the trade for huge margin deficit.
Sub-Second Runaway Loop Throttler (<5 orders/sec)
High-Frequency Infinite Loop Kill SwitchEnforces hard throughput limits on order dispatch rate per second and per minute.
Sliding token-bucket rate limiter tracks outgoing API requests. If order frequency breaches 5 requests per second, the daemon cuts WebSocket pipes and triggers immediate panic mode.
An unthrottled infinite loop can fire 500 orders in 2 seconds, exhausting account margin and racking up thousands in broker fees.
Explore Our Rock Solid Strategy Structure
See how Cascading Order Management, 5-Layer DB Fallback (DB → Backup DB → CSV → JSON → Text), 30/70 VPS Resource Pinning, and Fallback Broker Failover work together — plus free Streaming Charts & Custom Chart Indicators.
Ready to Automate Your Quantitative Edge?
Every client bot we develop includes this complete 32-point risk harness by default. Share your strategy conditions with our engineering team for a free feasibility review.
