TriggerCondition#
API documentation for tradeexecutor.state.trigger.TriggerCondition Python class in Trading Strategy framework.
- class TriggerCondition[source]#
Bases:
Enum
- __init__(*args, **kwds)#
Attributes
Market mid-price goes above a level
Market mid-price below above a level
Execute regardless of a price when deadline reached.
Close based on opening time
- cross_above = 'cross_above'#
Market mid-price goes above a level
- cross_below = 'cross_below'#
Market mid-price below above a level
- timed_absolute = 'timed_absolute'#
Execute regardless of a price when deadline reached.
E.g. close after midnight.
- timed_relative_to_open = 'timed_relative_to_open'#
Close based on opening time