重新整理 propertyGroup
This commit is contained in:
parent
eac5ac4ee6
commit
9efdf73204
@ -77,7 +77,7 @@ class FreqaiPrimer(IStrategy):
|
||||
can_short = False # 禁用做空
|
||||
|
||||
# [propertiesGrp_List]--------------------------------------------------------------------------------------------------------------------------------------
|
||||
# [propertiesGrp id="1" name="第一轮优化" epochs="200" space="buy roi stoploss" description="入场基础条件优化,入场确认条件优化"]
|
||||
# [propertiesGrp id="1" name="第一轮优化" epochs="120" space="buy roi stoploss" description="入场基础条件优化,入场确认条件优化"]
|
||||
bb_std = DecimalParameter(1.0, 5.0, decimals=1, default=4.6, optimize=True, load=True, space='buy') # 极致放宽:1.0-5.0
|
||||
rsi_length = IntParameter(5, 35, default=13, optimize=True, load=True, space='buy') # 极致放宽:5-35
|
||||
bb_lower_deviation = DecimalParameter(0.90, 1.20, decimals=2, default=0.9, optimize=True, load=True, space='buy') # 极致放宽:0.90-1.20
|
||||
@ -86,15 +86,18 @@ class FreqaiPrimer(IStrategy):
|
||||
min_condition_count = IntParameter(1, 3, default=1, optimize=True, load=True, space='buy') # 开启优化:1-3(降低入场门槛)
|
||||
bb_length = IntParameter(5, 50, default=40, optimize=True, load=True, space='buy') # 极致放宽:5-50
|
||||
rsi_oversold = IntParameter(15, 65, default=16, optimize=True, load=True, space='buy') # 极致放宽:15-65
|
||||
# [/propertiesGrp]
|
||||
|
||||
# [propertiesGrp id="2" name="第三轮优化" epochs="120" space="buy roi stoploss" description="剧烈拉升检测与加仓策略优化,加仓精准度与金额管理"]
|
||||
rsi_bull_threshold = IntParameter(30, 70, default=51, optimize=True, load=True, space='buy') # 极致放宽:30-70
|
||||
stochrsi_neutral_threshold = IntParameter(5, 45, default=36, optimize=True, load=True, space='buy') # 极致放宽:5-45
|
||||
bb_width_threshold = DecimalParameter(0.001, 0.060, decimals=3, default=0.01, optimize=True, load=True, space='buy') # 极致放宽:0.001-0.060
|
||||
# [/propertiesGrp]
|
||||
|
||||
# [propertiesGrp id="2" name="第三轮优化" epochs="200" space="buy roi stoploss" description="剧烈拉升检测与加仓策略优化,加仓精准度与金额管理"]
|
||||
h1_max_candles = IntParameter(100, 300, default=246, optimize=False, load=True, space='buy')
|
||||
h1_rapid_rise_threshold = DecimalParameter(0.05, 0.15, decimals=3, default=0.147, optimize=False, load=True, space='buy')
|
||||
h1_max_consecutive_candles = IntParameter(1, 4, default=2, optimize=False, load=True, space='buy')
|
||||
# [/propertiesGrp]
|
||||
|
||||
# [propertiesGrp id="3" name="第三轮优化" epochs="120" space="buy roi stoploss" description="剧烈拉升检测与加仓策略优化,加仓精准度与金额管理"]
|
||||
add_position_callback = DecimalParameter(0.03, 0.08, decimals=3, default=0.035, optimize=False, load=True, space='buy') # 加仓回调百分比
|
||||
add_rsi_oversold_threshold = IntParameter(5, 65, default=16, optimize=True, load=True, space='buy') # 极致放宽:5-65
|
||||
add_stochrsi_oversold = IntParameter(1, 55, default=16, optimize=True, load=True, space='buy') # 极致放宽:1-55
|
||||
@ -104,7 +107,7 @@ class FreqaiPrimer(IStrategy):
|
||||
adjust_multiplier = DecimalParameter(0.01, 2.0, decimals=2, default=1.06, optimize=True, load=True, space='buy') # 极致放宽:0.01-2.0
|
||||
# [/propertiesGrp]
|
||||
|
||||
# [propertiesGrp id="3" name="第五轮优化" epochs="200" space="sell roi stoploss" description="出场条件与分级止盈,减仓与风险管理"]
|
||||
# [propertiesGrp id="4" name="第五轮优化" epochs="200" space="sell roi stoploss" description="出场条件与分级止盈,减仓与风险管理"]
|
||||
exit_bb_upper_deviation = DecimalParameter(0.80, 1.25, decimals=2, default=0.99, optimize=True, load=True, space='sell') # 极致放宽:0.80-1.25
|
||||
exit_volume_multiplier = DecimalParameter(0.8, 6.0, decimals=1, default=4.7, optimize=True, load=True, space='sell') # 极致放宽:0.8-6.0
|
||||
exit_rsi_threshold = IntParameter(40, 85, default=58, optimize=True, load=True, space='sell') # 极致放宽:40-85
|
||||
@ -117,7 +120,7 @@ class FreqaiPrimer(IStrategy):
|
||||
max_reduce_adjustments = IntParameter(1, 12, default=3, space='sell', optimize=True) # 极致放宽:1-12
|
||||
# [/propertiesGrp]
|
||||
|
||||
# [propertiesGrp id="4" name="第六轮优化" epochs="80" space="roi stoploss" description="roi和stoploss优化" /]
|
||||
# [propertiesGrp id="5" name="第六轮优化" epochs="80" space="roi stoploss" description="roi和stoploss优化" /]
|
||||
# [/propertiesGrp_List]-----------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user