Loading...
Realized profits raise the agent's effective cap. The dashboard already reflects this. Here's the math.
Every time an agent closes a trade, the net P&L (after fees) is added to state.totalRealized. The effective cap for the NEXT entry is:
effectiveCap = baseCap + state.totalRealized
notional = min(stable × 0.99, effectiveCap × 0.99) × confidenceScoreAgent 3 starts with hardStopExposureUsd = 30. It's the cap in the CONFIG — constant.
1. Trade 1: buy SPX $29.70, sell +$0.80 net → totalRealized = 0.80, effective cap = $30.80 2. Trade 2: buy next coin sized to min(stable, $30.80 × 0.99) = up to $30.49 notional 3. Trade 2: +$1.20 net → totalRealized = 2.00, effective cap = $32.00 4. Trade 3: sized up to $31.68
Ten positive round-trips at +$1 each → effective cap is $40 with no new capital added.
A −$2 trade reduces totalRealized by $2. If you lose back to zero, you're back at base cap $30. Go more negative and you're below $30 — the agent trades SMALLER than its starting kitty until it earns back.
allocated_cash_available / allocated_cash_total. After YOLO v2, allocated_cash_total IS the effective cap — so it shows the compounded value directly.realized=$X.XX — running sum.