Fix extremely optimistic results when using a combination of custom_stoploss and trailing_stop.

This commit is contained in:
Rokas Kupstys
2021-06-29 16:17:52 +03:00
parent eb5cee4934
commit bc0742ae67
3 changed files with 24 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ class BTContainer(NamedTuple):
trailing_stop_positive: Optional[float] = None
trailing_stop_positive_offset: float = 0.0
use_sell_signal: bool = False
use_custom_stoploss: bool = False
def _get_frame_time_from_offset(offset):