分三步进行hyperopt优化, buy空间2次:什么时候买, 什么时候加仓; sell空间1次
This commit is contained in:
parent
703eaaf1f9
commit
fed42d9d39
@ -86,7 +86,7 @@ class FreqaiPrimer(IStrategy):
|
||||
|
||||
# 第一步 buy 空间优化参数 7个:
|
||||
# --- 趋势与信号生成 ---
|
||||
bb_length = IntParameter(10, 30, default=20, optimize=False, load=True, space='buy')
|
||||
bb_length = IntParameter(10, 30, default=20, optimize=True, load=True, space='buy')
|
||||
bb_std = DecimalParameter(1.5, 3.0, decimals=1, default=2.0, optimize=True, load=True, space='buy')
|
||||
rsi_length = IntParameter(7, 21, default=14, optimize=True, load=True, space='buy')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user