Support trailing_stop_positive options in BTContainer

This commit is contained in:
Matthias 2019-06-13 19:35:20 +02:00
parent a4d8424268
commit b64b6a2583

View File

@ -29,6 +29,10 @@ class BTContainer(NamedTuple):
trades: List[BTrade] trades: List[BTrade]
profit_perc: float profit_perc: float
trailing_stop: bool = False trailing_stop: bool = False
trailing_only_offset_is_reached: bool = False
trailing_stop_positive: float = None
trailing_stop_positive_offset: float = 0.0
use_sell_signal: bool = False
def _get_frame_time_from_offset(offset): def _get_frame_time_from_offset(offset):