v9.0.0a14
Pre-release
Pre-release
Added
- Broker-native mirror stop-loss/take-profit safety net:
StopLossRule/TakeProfitRulegainmirror_on_exchange— whenTrue, a resting broker-nativeSTOPorder is placed on the exchange alongside the client-side tracked rule as soon as a trade opens, so the rule keeps working even if the bot is offline when the price crosses the trigger. Trade allocation/P&L accounting is deferred until the mirror order is actually observed to fill. Whichever side fires first (mirror or client-side) cancels the other's resting order for that trade, including a sibling rule's mirror order.OrderExecutorgains asupports_mirror_orderscapability flag; the local paper-trading executor opts out. No-op in backtests. See the new "Broker-Native Mirror Stop-Loss / Take-Profit" page under Advanced Concepts in the docs.
Changed
trading_costsmoved offTradingStrategyontoPortfolioConfiguration/Study.execution_config.trading_symbolremoved fromTradingStrategy(symbolsunaffected); all examples and docs updated accordingly.
Full changelog: CHANGELOG.md