set stoploss at trade creation

This commit is contained in:
Italo 2022-01-22 14:06:45 +00:00
parent 52206e6f41
commit 0ce6c150ff
1 changed files with 1 additions and 0 deletions

View File

@ -521,6 +521,7 @@ class Backtesting:
exchange='backtesting',
orders=[]
)
trade.adjust_stop_loss(trade.open_rate, self.strategy.stoploss, initial=True)
order = Order(
ft_is_open=False,