up
Some checks are pending
Update Docker Hub Description / dockerHubDescription (push) Waiting to run

This commit is contained in:
zhangkun9038@dingtalk.com 2025-04-28 12:21:53 +08:00
parent 244b91ebd3
commit 82ed0e90e9

View File

@ -216,12 +216,12 @@ class FreqaiExampleStrategy(IStrategy):
df["volume"] > df["volume"].rolling(window=10).mean(), # 成交量高于近期均值
df["close"] < df["bb_middleband"] # 价格低于布林带中轨
]
if exit_long_conditions:
df.loc[
reduce(lambda x, y: x & y, exit_long_conditions),
"exit_long"
] = 1
return df
if exit_long_conditions:
df.loc[
reduce(lambda x, y: x & y, exit_long_conditions),
"exit_long"
] = 1
return df
def confirm_trade_entry(
self, pair: str, order_type: str, amount: float, rate: float,