Simplify test v2 strategy

This commit is contained in:
Matthias 2022-05-27 19:30:14 +02:00
parent 24cf044646
commit b04fe5d4ee

View File

@ -150,13 +150,3 @@ class StrategyTestV2(IStrategy):
),
'sell'] = 1
return dataframe
def adjust_trade_position(self, trade: Trade, current_time: datetime, current_rate: float,
current_profit: float,
min_stake: Optional[float], max_stake: float, **kwargs):
if current_profit < -0.0075:
orders = trade.select_filled_orders('buy')
return round(orders[0].cost, 0)
return None