My trading bot lost $4,232 running naked. Then I built it a cage.
说明与用途
一款执行激进跌价买入策略的交易机器人在没有安全措施的情况下损失了$4,232。引入cagerail笼子后,该策略变得盈利且风险低。
问题
A trading bot that could move 100% of a balance ran without safeguards, resulting in a $4,232 loss and a 132% drawdown.
结果
The cage prevented the bot from executing large, uncontrolled orders, limiting exposure to 10% per order, 25% per symbol, and 80% total, and imposed daily‑loss and drawdown halts. This transformed a catastrophic loss into a profitable run with significantly lower risk.
工作流
- 1. Define a reckless dip‑buy strategy. 2. Run strategy naked against a simulated market. 3. Observe catastrophic loss. 4. Implement cagerail cage with caps, brakes, cooldown, and approval gate. 5. Re‑run identical strategy inside the cage. 6. Record audit logs and evaluate outcomes.
证据
The strategy didn’t change. The cage is what made it survivable.
The per-order cap (10% of equity), per-symbol cap (25%) and total exposure cap (80%) simply refused to let the dip-buying cascade become the whole account.
Every decision is written to an audit log in the same event schema as my other project, whoapproved — a flight recorder that reconstructs who approved what across multi-agent sessions.
- 记录日期: 2026-10-27T03:11:38.435Z