减少了epochs

This commit is contained in:
Ubuntu 2025-11-17 04:15:39 +08:00
parent 03a60457a6
commit 92a4a57396

View File

@ -82,7 +82,7 @@ class FreqaiPrimer(IStrategy):
can_short = False # 禁用做空
# [propertiesGrp_List]--------------------------------------------------------------------------------------------------------------------------------------
# [propertiesGrp id="1" name="第一轮优化" epochs="85" space="buy" description="入场基础条件优化"]
# [propertiesGrp id="1" name="第一轮优化" epochs="75" space="buy" description="入场基础条件优化"]
bb_std = DecimalParameter(1.5, 3.0, decimals=1, default=2.9, optimize=True, load=True, space='buy')
rsi_length = IntParameter(7, 21, default=18, optimize=True, load=True, space='buy')
bb_lower_deviation = DecimalParameter(1.01, 1.05, decimals=2, default=1.03, optimize=True, load=True, space='buy')
@ -90,7 +90,7 @@ class FreqaiPrimer(IStrategy):
volume_multiplier = DecimalParameter(1.2, 2.0, decimals=1, default=1.5, optimize=True, load=True, space='buy')
min_condition_count = IntParameter(2, 4, default=2, optimize=True, load=True, space='buy')
# [propertiesGrp id="2" name="第二轮优化" epochs="120" space="buy" description="入场确认条件优化"]
# [propertiesGrp id="2" name="第二轮优化" epochs="75" space="buy" description="入场确认条件优化"]
bb_length = IntParameter(10, 30, default=28, optimize=True, load=True, space='buy')
rsi_oversold = IntParameter(30, 50, default=40, optimize=True, load=True, space='buy')
rsi_bull_threshold = IntParameter(45, 55, default=53, optimize=True, load=True, space='buy')
@ -98,7 +98,7 @@ class FreqaiPrimer(IStrategy):
bb_width_threshold = DecimalParameter(0.01, 0.03, decimals=3, default=0.013, optimize=True, load=True, space='buy')
# [/propertiesGrp]
# [propertiesGrp id="3" name="第三轮优化" epochs="250" space="buy" description="剧烈拉升检测与加仓策略优化"]
# [propertiesGrp id="3" name="第三轮优化" epochs="200" space="buy" description="剧烈拉升检测与加仓策略优化"]
h1_max_candles = IntParameter(100, 300, default=260, optimize=True, load=True, space='buy')
h1_rapid_rise_threshold = DecimalParameter(0.05, 0.15, decimals=3, default=0.148, optimize=True, load=True, space='buy')
h1_max_consecutive_candles = IntParameter(1, 4, default=2, optimize=True, load=True, space='buy')
@ -107,7 +107,7 @@ class FreqaiPrimer(IStrategy):
adjust_multiplier = DecimalParameter(0.05, 0.6, decimals=2, default=0.59, optimize=True, load=True, space='buy') # 加仓金额分母
# [/propertiesGrp]
# [propertiesGrp id="4" name="第四轮优化" epochs="100" space="sell" description="出场与减仓策略优化"]
# [propertiesGrp id="4" name="第四轮优化" epochs="85" space="sell" description="出场与减仓策略优化"]
exit_bb_upper_deviation = DecimalParameter(0.98, 1.02, decimals=2, default=0.99, optimize=True, load=True, space='sell')
exit_volume_multiplier = DecimalParameter(1.5, 3.0, decimals=1, default=2.2, optimize=True, load=True, space='sell')
rsi_overbought = IntParameter(57, 59, default=58, optimize=True, load=True, space='sell')