The five pillars of unCoded risk management
The kill switch
Stop-loss and trailing stops
Capital allocation
Reserves
Sub-accounts
The kill switch (again)
The honest framing
The risk-management hierarchy
Operators who survive long-term apply risk management in this priority order:Permission scoping (no withdrawal)
Reserve sizing (50% rule)
Per-pair capital limits
25% of your trading capital. Concentration risk is a real source of operator pain.Per-mode stop-loss configuration
Kill-switch readiness
Sub-account isolation for experiments
Common operator risk patterns
The all-in operator (avoid)
The all-in operator (avoid)
-20% drawdown removes 20% of your operational base. No buffer to take advantage of opportunities, no buffer to absorb stress.Better: 50% in active modes, 50% reserve. Lower nominal returns when good but dramatically better resilience when bad.The over-diversified operator
The over-diversified operator
The kill-switch-averse operator
The kill-switch-averse operator
The mode-jumper
The mode-jumper
The leveraged-thinking operator
The leveraged-thinking operator
Worst-case scenarios — what to plan for
Symbol crashes -50% in a day
Symbol crashes -50% in a day
- Don’t panic-close at the bottom (ironic but common).
- Decide: is the symbol fundamentally OK? If yes, hold. If you’ve lost confidence, exit manually and accept the loss.
- Use kill switch to prevent new buying on that pair.
- Capital reserve helps you avoid being forced to sell at the bottom.
Exchange goes offline for hours/days
Exchange goes offline for hours/days
- Funds are safe — they’re on the exchange, not your VPS.
- Sit tight. There’s nothing operator action can fix during venue outage.
- Watch news for updates on the venue’s status.
- When venue returns, verify reconciliation matches expectation.
VPS dies (provider failure, accidental destruction)
VPS dies (provider failure, accidental destruction)
- Restore from your most recent database backup (you do back up daily, right?).
- Spin up a replacement VPS, deploy unCoded, restore database, restart.
- The exchange is the source of truth for your funds. Your capital is intact.
- Lost: only the local trade history since last backup.
API key gets compromised (somehow)
API key gets compromised (somehow)
- Immediately revoke the key at the venue.
- Generate new key with correct permissions.
- Update Dashboard, restart bot.
- Review the venue’s audit log for the leak window — what did the attacker do?
- Because you correctly disabled withdrawal, the worst case is the attacker traded your funds. They can’t drain.
Operator panic — bad day in the markets
Operator panic — bad day in the markets
- Step back. Coffee. Walk.
- Open the Dashboard. Look at actual positions, actual P&L, actual unrealized exposure.
- Decide: is this within historical drawdown ranges? If yes, hold.
- If you really want to act: kill switch ON. Don’t close positions out of fear.
- Wait for clarity (an hour? a day?). Then decide with calmer head.