Use oppen_rate instead of artificial defaults

This commit is contained in:
Matthias
2019-03-17 13:12:04 +01:00
parent fc360608b7
commit 2d4a2fd10b
2 changed files with 5 additions and 4 deletions

View File

@@ -301,8 +301,9 @@ class IStrategy(ABC):
# evaluate if the stoploss was hit if stoploss is not on exchange
if ((self.stoploss is not None) and
(trade.stop_loss >= current_rate) and
(not self.order_types.get('stoploss_on_exchange'))):
(trade.stop_loss >= current_rate) and
(not self.order_types.get('stoploss_on_exchange'))):
selltype = SellType.STOP_LOSS
# If Trailing stop (and max-rate did move above open rate)
if trailing_stop and trade.open_rate != trade.max_rate: