TriggerPriceUpdate#
API documentation for tradeexecutor.state.position.TriggerPriceUpdate Python class in Trading Strategy framework.
- class TriggerPriceUpdate[source]#
Bases:
objectA position trigger prices where updated.
Store the historical changes in trigger prices on
TradingPosition.See
TradingPosition.trailing_stop_loss.
- __init__(timestamp, mid_price=None, stop_loss_before=None, stop_loss_after=None, take_profit_before=None, take_profit_after=None)#
Methods
__init__(timestamp[, mid_price, ...])from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])schema(*[, infer_missing, only, exclude, ...])to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])Attributes
timestampmid_pricestop_loss_beforestop_loss_aftertake_profit_beforetake_profit_after- __init__(timestamp, mid_price=None, stop_loss_before=None, stop_loss_after=None, take_profit_before=None, take_profit_after=None)#