check_position_triggers#

check_position_triggers(position_manager)[source]#

Generate trades that depend on real-time price signals.

  • Stop loss

  • Take profit

Does not do anything, unless the execution model overrides this.

  • Get the real-time price of an assets that are currently hold in the portfolio

  • Generate stop loss/take profit signals for trades

Parameters
  • position_manager (PositionManager) – Encapsulates the current state, universe for closing positions

  • cycle_debug_data – The debug data of previous cycle

Return type

List[TradeExecution]