up
Some checks are pending
Update Docker Hub Description / dockerHubDescription (push) Waiting to run
Some checks are pending
Update Docker Hub Description / dockerHubDescription (push) Waiting to run
This commit is contained in:
parent
244b91ebd3
commit
82ed0e90e9
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user