Risk discipline
The hard rules the agent cannot violate — capital caps, leverage limits, drawdown auto-pause.
Every trade passes through a fixed sequence of risk gates before the order leaves the executor. Failing any one of them marks the signal skipped_* rather than placing the trade.
The gates, in order
- Master switch:
activeandauto_trade_enabledmust both be true. - Drawdown brake:
agent_paused_drawdownmust be false. - Mode:
modedetermines which eToro environment is hit. - Confidence: signal's confidence ≥
min_confidence_to_trade. - Tradability: ticker resolves to an eToro instrument.
- Conflict: no open position pointing the other way.
- Caps: open count below
max_simultaneous_positions; session spend belowsession_budget_usd. - Leverage: clamped to
max_leverageregardless of AI proposal. - SL/TP: applied from brief, or
default_stop_loss_pct/default_take_profit_pctif absent.
Drawdown auto-pause
Whenever equity falls more than max_drawdown_pct from peak_portfolio_value, the agent sets agent_paused_drawdown = true and stops opening new trades. Existing positions are still monitored and may close on SL/TP. You must manually un-pause once you've reviewed why.
Demo and live each have their own peak / drawdown tracking. Flipping modes does not reset the brake.