Risk Guard is an autonomous AI trading agent that puts capital preservation first. Most trading bots optimise for raw PnL - Risk Guard's primary job is to not lose money. Every trade decision passes through a 5-layer guard system before a single order is placed. Claude AI only decides if all guards agree the risk is acceptable. The 5 Guard Engine ; 1. Cooldown - 5 minute pause after any stop-loss trigger 2. Drawdown - HALT at 12% portfolio drawdown, CAUTION at 7% 3. Volatility - ATR vs rolling average; HALT at 2.5×, CAUTION at 1.5× 4. RSI - CAUTION above 72 (overbought) or below 28 (oversold) 5. Spread - CAUTION when bid-ask exceeds 0.5% Each CAUTION reduces position size by 33%. A HALT stops all entries. AI Brain ; Claude reads live market context, price, RSI, ATR, recent candles, guard verdict and returns a structured decision: action, size, stop-loss, take-profit. If the API is unavailable, RSI + momentum rules take over automatically. Dead Man's Switch ; Every cycle re-arms kraken order cancel-after 120 as the first operation. If the process dies, all open orders cancel within 120 seconds. Dashboard; Ratatui terminal UI with drawdown gauge, braille sparklines per pair, per-guard breakdown, market snapshot, positions, and recent trades. Tech Stack; Rust 2024, Tokio, Kraken CLI, Claude AI, Ratatui, reqwest. Single binary. Zero Python. Track: Kraken CLI Challenge - paper trading BTCUSD, ETHUSD, SOLUSD.
Category tags: