cleanup interface
This commit is contained in:
parent
fc3f8b436d
commit
3679b0948a
@ -212,8 +212,8 @@ class IStrategy(ABC):
|
||||
# Set current rate to low for backtesting sell
|
||||
current_rate = rate if not low else low
|
||||
current_profit = trade.calc_profit_percent(current_rate)
|
||||
stoplossflag = self.stop_loss_reached(current_rate=current_rate, trade=trade, current_time=date,
|
||||
current_profit=current_profit)
|
||||
stoplossflag = self.stop_loss_reached(current_rate=current_rate, trade=trade,
|
||||
current_time=date, current_profit=current_profit)
|
||||
if stoplossflag.sell_flag:
|
||||
return stoplossflag
|
||||
# Set current rate to low for backtesting sell
|
||||
|
Loading…
Reference in New Issue
Block a user