Platform · Risk Engine
One input, one answer, every time.
01
Account state
Each audit cycle reads a snapshot: balance, equity at mid-price, the day's starting equity, the high watermark, and every open position with its lots, stop and floating P&L.
02
Daily loss
daily_loss = equity_start_of_day − equity_now utilization = daily_loss / (account_size × 0.05)
On a $100,000 account the daily limit is $5,000. A $4,200 floating loss is 84% utilization.
03
Trailing drawdown
drawdown = (HWM − equity) / HWM ≤ 0.10
The high watermark moves up with new equity highs and never moves down. The floor never drops below the initial balance minus 10%.
Pending confirmationWhether the trailing floor locks at initial balance once reached is to be confirmed by engineering.
04
Verdicts
| Utilization | Verdict | Effect |
|---|---|---|
| Below 80% | PASS | Trading continues normally. |
| 80% – 99.9% | DANGER | A 50% exposure reduction is issued. Account stays open. |
| 100% or more | HALT | Hard breach. Trading permissions end. |
05
Audit records
Each verdict is stored with its inputs and a SHA-256 hash of the record, so any decision can be recomputed and checked later.
06
Market data and decisions
Positions are valued at mid-price, (Bid + Ask) / 2. A breach must persist through a timeframe debounce before it counts. See the execution methodology for details.
Related