Merge pull request #6274 from italodamato/set-stoploss-at-trade-creation

set stoploss at trade creation
This commit is contained in:
Matthias 2022-01-22 16:17:47 +01:00 committed by GitHub
commit 01b331ee42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,