根据学习结果重新修改代码
This commit is contained in:
parent
8d19ede45d
commit
040c5b6c36
@ -255,8 +255,8 @@ class FreqaiPrimer(IStrategy):
|
||||
return dynamic_stoploss
|
||||
|
||||
def adjust_trade_position(self, trade: Trade, current_time: datetime,
|
||||
current_rate: float, current_profit: float,
|
||||
min_roi: Dict[float, float], max_profit: float) -> Optional[Dict[float, float]]:
|
||||
current_rate: float, current_profit: float,
|
||||
min_roi: Dict[float, float], max_profit: float) -> Optional[Dict[float, float]]:
|
||||
dataframe, _ = self.dp.get_analyzed_dataframe(trade.pair, self.timeframe)
|
||||
last_candle = dataframe.iloc[-1]
|
||||
|
||||
@ -288,3 +288,4 @@ class FreqaiPrimer(IStrategy):
|
||||
"180": 0.005
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user