Risk Engine

Risk Management

Multi-layered protection system that prevents catastrophic losses while maximizing edge extraction.

Kill Switch

Armed

Automatically halts all trading when daily loss exceeds the configured cap. Prevents catastrophic drawdowns during black swan events or strategy failure.

DAILY_LOSS_CAP$50

Dynamic Position Sizing

Active

Scales position size proportionally to signal confidence. Higher confidence = larger allocation, capped at MAX_POSITION_SIZE. Prevents oversized bets on weak signals.

MAX_POSITION_SIZE$100

Take Profit / Stop Loss

Active

Every trade has pre-computed TP and SL levels based on entry price and configured percentages. Exits are automatic — no emotional decision-making.

TP/SL3% / 1.5%

Window Timing Rules

Configured

Restricts trading to optimal market hours when liquidity is highest and spreads are tightest. Avoids low-volume periods where slippage erodes edge.

TRADE_WINDOWUTC 13:00–21:00
Dynamic Position Sizing Matrix
Signal ConfidenceAllocation %Risk Level
90–100%5.0%Maximum
70–89%3.5%High
50–69%2.0%Medium
30–49%1.0%Low
<30%SkipNo Trade
Risk Philosophy

Capital Preservation First

The kill switch and daily loss cap ensure that no single bad day can wipe out accumulated gains. The bot is designed to survive drawdowns, not just maximize returns. A 50% loss requires a 100% gain to recover.

Edge Compounding

By sizing positions proportionally to confidence, the bot naturally compounds its edge. High-confidence signals get larger allocations, while marginal signals get minimal exposure. Over hundreds of trades, this asymmetry compounds significantly.