ox-charts

Risk limits and the kill switch

Every order passes a gate. Limits live in Settings → Automation; the kill switch stops everything.

Settings → Automation edits the limits, separately for script orders and manual orders. The order counters are shared across both.

LimitScript defaultManual defaultChecks
Max lots per order110Order size
Max position2 lots20 lotsPosition after the fill, resting entries included; reducing orders pass
Max notional per orderOffOffQuantity × price
Orders per minute / day6 / 6030 / 500Sliding minute, calendar day; cancels don't count
Daily loss limitOffOffNo new risk once the day's P&L falls this far; optionally square off
Trading hours09:15–15:30, entries until 15:20 ISTOffOutside the window nothing passes; after the cutoff only reducing orders
Price band±5%OffLimit and stop prices against the last price
Pause after rejects33Consecutive broker rejects pause the strategy
Cool-down5 min5 minWait before re-arming after a kill or a pause
Tick executionOffOnOrders from a forming bar

The kill switch

Kill in the trading panel strip or the Automation tab cancels every script order, pauses every strategy, denies new manual risk and starts the cool-down. It stays on until you press Release.

Your platform can set tighter or looser defaults; the numbers above are the library's. See Automation config and limits.