Only adjust stoploss if it's set.
This commit is contained in:
parent
1e3fc5e984
commit
b7bf3247b8
@ -587,6 +587,7 @@ class LocalTrade():
|
||||
self.amount = total_amount
|
||||
self.fee_open_cost = self.fee_open * self.stake_amount
|
||||
self.recalc_open_trade_value()
|
||||
if self.stop_loss_pct is not None and self.open_rate is not None:
|
||||
self.adjust_stop_loss(self.open_rate, self.stop_loss_pct)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user