check_trigger_hit#
API documentation for tradeexecutor.strategy.stop_loss.check_trigger_hit Python function.
- check_trigger_hit(timestamp, p, trade, mid_price, execution_context)[source]#
See if any of the trades triggers activate.
- Parameters:
timestamp (datetime) –
p (TradingPosition) –
trade (TradeExecution) –
mid_price (float) –
execution_context (ExecutionContext) –
- Return type: