Simplify test v2 strategy
This commit is contained in:
parent
24cf044646
commit
b04fe5d4ee
@ -150,13 +150,3 @@ class StrategyTestV2(IStrategy):
|
|||||||
),
|
),
|
||||||
'sell'] = 1
|
'sell'] = 1
|
||||||
return dataframe
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user