Skip to content

v9.0.0a14

Pre-release
Pre-release

Choose a tag to compare

@MDUYN MDUYN released this 04 Sep 11:29
· 27 commits to main since this release

Added

  • Broker-native mirror stop-loss/take-profit safety net: StopLossRule/TakeProfitRule gain mirror_on_exchange — when True, a resting broker-native STOP order 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. OrderExecutor gains a supports_mirror_orders capability 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_costs moved off TradingStrategy onto PortfolioConfiguration/Study.execution_config. trading_symbol removed from TradingStrategy (symbols unaffected); all examples and docs updated accordingly.

Full changelog: CHANGELOG.md