check_position_triggers#
- check_position_triggers(position_manager)[source]#
Generate trades that depend on real-time price signals.
Stop loss
Take profit
What dots this do.
Get the real-time price of an assets that are currently hold in the portfolio
Use mid-price to check for the trigger price threshold
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