TriggerPriceUpdate#
tradeexecutor.state.position.TriggerPriceUpdate Python class in Trading Strategy framework.
- class TriggerPriceUpdate[source]#
Bases:
object
A position trigger prices where updated.
Store the historical changes in trigger prices on
TradingPosition
.See
TradingPosition.trailing_stop_loss
.
- __init__(timestamp, mid_price, stop_loss_before, stop_loss_after, take_profit_before, take_profit_after)#
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
timestamp
mid_price
stop_loss_before
stop_loss_after
take_profit_before
take_profit_after
- __init__(timestamp, mid_price, stop_loss_before, stop_loss_after, take_profit_before, take_profit_after)#