Hyperopt参数更新 - 阶段:1 | VM:rose | ResponseID:eLFiEimonTvu | 2025-11-24 13:32:28

This commit is contained in:
zhangkun 2025-11-24 13:32:28 +08:00
parent 7e569e18f5
commit 73306096f5
2 changed files with 30 additions and 24 deletions

View File

@ -1,19 +1,8 @@
{
"strategy_name": "FreqaiPrimer",
"export_time": "2025-11-23 14:25:38.989402+00:00",
"ft_stratparam_v": 1,
"max_open_trades": 5,
"params": {
"roi": {},
"stoploss": {
"stoploss": -0.085
},
"trailing": {
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045,
"trailing_only_offset_is_reached": false
},
"max_open_trades": {
"max_open_trades": 5
},
"buy": {
"add_bb_lower_proximity": 1.102,
"add_position_callback": 0.052,
@ -24,19 +13,24 @@
"bb_length": 36,
"bb_lower_deviation": 0.926,
"bb_std": 2.7,
"bb_width_threshold": 0.005,
"h1_max_candles": 40,
"h1_max_consecutive_candles": 2,
"bb_width_threshold": 0.004,
"h1_max_candles": 43,
"h1_max_consecutive_candles": 1,
"h1_rapid_rise_threshold": 0.08,
"max_entry_adjustments": 6,
"min_condition_count": 2,
"rsi_bull_threshold": 68,
"rsi_bull_threshold": 57,
"rsi_length": 14,
"rsi_oversold": 20,
"rsi_oversold": 25,
"stochrsi_bull_threshold": 21,
"stochrsi_neutral_threshold": 22,
"stochrsi_neutral_threshold": 38,
"volume_multiplier": 4.3
},
"max_open_trades": {
"max_open_trades": 5
},
"protection": {},
"roi": {},
"sell": {
"exit_bb_upper_deviation": 0.923,
"exit_profit_tier1": 0.032,
@ -49,8 +43,20 @@
"reduce_coefficient": 0.263,
"reduce_profit_base": 0.063
},
"protection": {}
"stoploss": {
"stoploss": -0.085
},
"trailing": {
"trailing_only_offset_is_reached": false,
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045
}
},
"ft_stratparam_v": 1,
"export_time": "2025-11-23 14:25:38.989402+00:00"
"stoploss": -0.085,
"strategy_name": "FreqaiPrimer",
"trailing_only_offset_is_reached": false,
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045
}

View File

@ -95,7 +95,7 @@ class FreqaiPrimer(IStrategy):
# [propertiesGrp step="2" name="第二轮优化 - 剧烈拉升检测" epochs="160" space="buy" description="防追高核心参数,绝对不能放宽!"]
rsi_oversold = IntParameter(20, 50, default=30, optimize=True, load=True, space='buy') # 安全20-50
rsi_bull_threshold = IntParameter(40, 68, default=58, optimize=True, load=True, space='buy') # 安全40-68
stochrsi_neutral_threshold = IntParameter(15, 40, default=30, optimize=True, load=True, space='buy') # 安全15-40
stochrsi_neutral_threshold = IntParameter(15, 40, default=38, optimize=True, load=True, space='buy') # 安全15-40
bb_width_threshold = DecimalParameter(0.003, 0.030, decimals=3, default=0.012, optimize=True, load=True, space='buy') # 安全0.003-0.030
h1_max_candles = IntParameter(16, 50, default=35, optimize=True, load=True, space='buy') # 黄金区间绝不能超过50
h1_rapid_rise_threshold = DecimalParameter(0.08, 0.22, decimals=3, default=0.15, optimize=True, load=True, space='buy') # 0.08-0.22 实盘最稳