Skip to content

Kill Switch

Emergency position close procedures.

Triggers

Kill switch activates automatically when:

Trigger Threshold
Daily Loss > 3% of capital
Total Drawdown > 6% of capital
Consecutive Losses > 5 trades
Connection Lost > 60 seconds
Spread Anomaly > 5x normal

Manual Activation

Via Trading Platform

  1. Open MT5/exchange
  2. Close all positions
  3. Cancel pending orders
  4. Disable EAs/bots

Via Webhook

Send to kill switch endpoint:

{
  "action": "KILL_SWITCH",
  "reason": "Manual activation",
  "timestamp": "2024-01-15T10:30:00Z"
}

Via Claude Code

/kill-switch  # If skill exists

Post-Activation

  1. Verify all positions closed
  2. Document reason and state
  3. Review what triggered it
  4. Analyze root cause
  5. Decide on restart criteria

Restart Criteria

Before restarting:

  • Root cause identified
  • Fix implemented (if applicable)
  • Risk limits reviewed
  • Waiting period complete (24h minimum for P1)
  • Stakeholder approval

Testing

Test kill switch monthly:

  1. Paper trading mode
  2. Trigger manually
  3. Verify all actions
  4. Document results

Configuration

# config/risk_limits.yaml
kill_switch:
  enabled: true
  daily_loss_trigger: 3.0      # %
  total_drawdown_trigger: 6.0  # %
  consecutive_loss_limit: 5
  connection_timeout: 60       # seconds
  spread_anomaly_mult: 5.0