Automatically stop trading when portfolio drawdown exceeds a threshold.
PREREQUISITE: Load the following skills to execute this recipe:
kraken-risk-operations,kraken-alert-patterns
Monitor portfolio value and halt trading if cumulative drawdown from peak exceeds a limit (e.g., 10%).
kraken balance -o json 2>/dev/null + kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null (calculate total USD value)kraken-rate-limits for tier budgets):
kraken order cancel-all -o json 2>/dev/nullkraken futures cancel-all -o json 2>/dev/null