合并goflow最优解

This commit is contained in:
zhangkun9038@dingtalk.com 2025-11-24 20:11:54 +08:00
parent 7b751a5d07
commit 3e57301762
2 changed files with 217 additions and 284 deletions

View File

@ -7,50 +7,51 @@
},
"trailing": {
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045,
"trailing_only_offset_is_reached": false
"trailing_stop_positive": 0.012,
"trailing_stop_positive_offset": 0.02,
"trailing_only_offset_is_reached": true
},
"max_open_trades": {
"max_open_trades": 5
},
"buy": {
"add_bb_lower_proximity": 1.102,
"add_position_callback": 0.052,
"add_position_decrease_ratio": 0.36,
"add_rsi_oversold_threshold": 31,
"add_stochrsi_oversold": 21,
"adjust_multiplier": 0.66,
"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,
"h1_rapid_rise_threshold": 0.08,
"max_entry_adjustments": 6,
"bb_length": 14,
"bb_lower_deviation": 1.02,
"bb_std": 1.802,
"bb_width_threshold": 0.014,
"min_condition_count": 2,
"rsi_bull_threshold": 68,
"rsi_length": 14,
"rsi_oversold": 20,
"stochrsi_bull_threshold": 21,
"stochrsi_neutral_threshold": 22,
"volume_multiplier": 4.3
"rsi_length": 16,
"stochrsi_bull_threshold": 35,
"volume_multiplier": 1.553,
"rsi_oversold": 37,
"rsi_bull_threshold": 52,
"stochrsi_neutral_threshold": 23,
"h1_max_candles": 225,
"h1_max_consecutive_candles": 1,
"h1_rapid_rise_threshold": 0.14,
"add_position_callback": 0.049,
"adjust_multiplier": 0.193,
"max_entry_adjustments": 4,
"add_rsi_oversold_threshold": 25,
"add_stochrsi_oversold": 20,
"add_bb_lower_proximity": 1.05,
"add_position_decrease_ratio": 0.55
},
"sell": {
"exit_bb_upper_deviation": 0.923,
"exit_profit_tier1": 0.032,
"exit_profit_tier2": 0.167,
"exit_reduce_tier1": 0.69,
"exit_reduce_tier2": 0.33,
"exit_rsi_threshold": 68,
"exit_volume_multiplier": 5.1,
"max_reduce_adjustments": 4,
"reduce_coefficient": 0.263,
"reduce_profit_base": 0.063
"exit_bb_upper_deviation": 0.989,
"exit_volume_multiplier": 2.146,
"exit_rsi_threshold": 65,
"rsi_overbought": 57,
"exit_profit_tier1": 0.06,
"exit_reduce_tier1": 0.5,
"exit_profit_tier2": 0.12,
"exit_reduce_tier2": 0.3,
"reduce_profit_base": 0.11,
"reduce_coefficient": 0.346,
"max_reduce_adjustments": 2
},
"protection": {}
},
"ft_stratparam_v": 1,
"export_time": "2025-11-23 14:25:38.989402+00:00"
"export_time": "2025-11-24 10:30:00.000000+00:00"
}

View File

@ -1,5 +1,5 @@
{
"took": 0,
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
@ -16,47 +16,99 @@
"hits": [
{
"_index": "freqai.propertygroup-2025.11",
"_id": "RyqcYwhgVxsfGeVF",
"_id": "7b7ead9d2d6be6e9",
"_score": 1,
"_source": {
"id": "RyqcYwhgVxsfGeVF",
"name": "第一轮优化",
"space": "buy ",
"step": 1,
"epoch": 0,
"description": "入场基础条件优化,入场确认条件优化",
"id": "2",
"hash_id": "7b7ead9d2d6be6e9",
"name": "第二轮优化",
"space": "buy",
"epoch": 100,
"description": "入场确认条件优化",
"properties": {
"bb_length": {
"optimize": true,
"min": 20,
"max": 60,
"min": 10,
"max": 30,
"space": "buy",
"type": "int",
"default": 30,
"default": 14,
"load": true
},
"bb_lower_deviation": {
"bb_width_threshold": {
"optimize": true,
"min": 0.92,
"max": 1.15,
"min": 0.01,
"max": 0.03,
"space": "buy",
"type": "decimal",
"default": 1.05,
"default": 0.014,
"load": true
},
"rsi_bull_threshold": {
"optimize": true,
"min": 45,
"max": 55,
"space": "buy",
"type": "int",
"default": 52,
"load": true
},
"rsi_oversold": {
"optimize": true,
"min": 30,
"max": 50,
"space": "buy",
"type": "int",
"default": 37,
"load": true
},
"stochrsi_neutral_threshold": {
"optimize": true,
"min": 20,
"max": 30,
"space": "buy",
"type": "int",
"default": 23,
"load": true
}
},
"step_id": 1
}
},
{
"_index": "freqai.propertygroup-2025.11",
"_id": "c8eaea4ced9e188b",
"_score": 1,
"_source": {
"id": "1",
"hash_id": "c8eaea4ced9e188b",
"name": "第一轮优化",
"space": "buy",
"epoch": 100,
"description": "入场基础条件优化",
"properties": {
"bb_lower_deviation": {
"optimize": true,
"min": 1.01,
"max": 1.05,
"space": "buy",
"type": "decimal",
"default": 1.02,
"load": true
},
"bb_std": {
"optimize": true,
"min": 2,
"max": 5,
"min": 1.5,
"max": 3,
"space": "buy",
"type": "decimal",
"default": 2.691,
"default": 1.802,
"load": true
},
"min_condition_count": {
"optimize": true,
"min": 1,
"max": 2,
"min": 2,
"max": 4,
"space": "buy",
"type": "int",
"default": 2,
@ -64,293 +116,173 @@
},
"rsi_length": {
"optimize": true,
"min": 10,
"max": 30,
"min": 7,
"max": 21,
"space": "buy",
"type": "int",
"default": 19,
"default": 16,
"load": true
},
"stochrsi_bull_threshold": {
"optimize": true,
"min": 20,
"max": 50,
"min": 30,
"max": 40,
"space": "buy",
"type": "int",
"default": 28,
"default": 35,
"load": true
},
"volume_multiplier": {
"optimize": true,
"min": 1.5,
"max": 6,
"space": "buy",
"type": "decimal",
"default": 2.764,
"load": true
}
}
}
},
{
"_index": "freqai.propertygroup-2025.11",
"_id": "oZkA7AMsO0GANT7g",
"_score": 1,
"_source": {
"id": "oZkA7AMsO0GANT7g",
"name": "第二轮优化 - 剧烈拉升检测",
"space": "buy",
"step": 2,
"epoch": 0,
"description": "防追高核心参数,绝对不能放宽!",
"properties": {
"bb_width_threshold": {
"optimize": true,
"min": 0.003,
"max": 0.03,
"space": "buy",
"type": "decimal",
"default": 0.02,
"load": true
},
"h1_max_candles": {
"optimize": true,
"min": 16,
"max": 50,
"space": "buy",
"type": "int",
"default": 17,
"load": true
},
"h1_max_consecutive_candles": {
"optimize": true,
"min": 1,
"min": 1.2,
"max": 2,
"space": "buy",
"type": "int",
"default": 2,
"load": true
},
"h1_rapid_rise_threshold": {
"optimize": true,
"min": 0.08,
"max": 0.22,
"space": "buy",
"type": "decimal",
"default": 0.084,
"load": true
},
"rsi_bull_threshold": {
"optimize": true,
"min": 40,
"max": 68,
"space": "buy",
"type": "int",
"default": 66,
"load": true
},
"rsi_oversold": {
"optimize": true,
"min": 20,
"max": 50,
"space": "buy",
"type": "int",
"default": 20,
"load": true
},
"stochrsi_neutral_threshold": {
"optimize": true,
"min": 15,
"max": 40,
"space": "buy",
"type": "int",
"default": 26,
"default": 1.553,
"load": true
}
}
},
"step_id": 0
}
},
{
"_index": "freqai.propertygroup-2025.11",
"_id": "wxODMj4r08AXUy1J",
"_id": "efc6db6b15310798",
"_score": 1,
"_source": {
"id": "wxODMj4r08AXUy1J",
"name": "第三轮优化 - 加仓策略",
"space": "buy",
"step": 3,
"epoch": 0,
"description": "加仓精准度与金额管理,严防爆仓",
"properties": {
"add_bb_lower_proximity": {
"optimize": true,
"min": 0.85,
"max": 1.2,
"space": "buy",
"type": "decimal",
"default": 1.058,
"load": true
},
"add_position_callback": {
"optimize": true,
"min": 0.025,
"max": 0.07,
"space": "buy",
"type": "decimal",
"default": 0.04,
"load": true
},
"add_position_decrease_ratio": {
"optimize": true,
"min": 0.3,
"max": 0.8,
"space": "buy",
"type": "decimal",
"default": 0.384,
"load": true
},
"add_rsi_oversold_threshold": {
"optimize": true,
"min": 15,
"max": 40,
"space": "buy",
"type": "int",
"default": 23,
"load": true
},
"add_stochrsi_oversold": {
"optimize": true,
"min": 10,
"max": 35,
"space": "buy",
"type": "int",
"default": 18,
"load": true
},
"adjust_multiplier": {
"optimize": true,
"min": 0.6,
"max": 1.6,
"space": "buy",
"type": "decimal",
"default": 1.458,
"load": true
},
"max_entry_adjustments": {
"optimize": true,
"min": 2,
"max": 7,
"space": "buy",
"type": "int",
"default": 5,
"load": true
}
}
}
},
{
"_index": "freqai.propertygroup-2025.11",
"_id": "eyCLhZ84sHie18O1",
"_score": 1,
"_source": {
"id": "eyCLhZ84sHie18O1",
"name": "第四轮优化 - 出场与分级止盈",
"id": "4",
"hash_id": "efc6db6b15310798",
"name": "第四轮优化",
"space": "sell",
"step": 4,
"epoch": 0,
"description": "出场条件与分级止盈,减仓与风险管理",
"epoch": 100,
"description": "出场与减仓策略优化",
"properties": {
"exit_bb_upper_deviation": {
"optimize": true,
"min": 0.9,
"max": 1.15,
"min": 0.98,
"max": 1.02,
"space": "sell",
"type": "decimal",
"default": 0.94,
"load": true
},
"exit_profit_tier1": {
"optimize": true,
"min": 0.03,
"max": 0.12,
"space": "sell",
"type": "decimal",
"default": 0.108,
"load": true
},
"exit_profit_tier2": {
"optimize": true,
"min": 0.08,
"max": 0.2,
"space": "sell",
"type": "decimal",
"default": 0.132,
"load": true
},
"exit_reduce_tier1": {
"optimize": true,
"min": 0.2,
"max": 0.7,
"space": "sell",
"type": "decimal",
"default": 0.687,
"load": true
},
"exit_reduce_tier2": {
"optimize": true,
"min": 0.15,
"max": 0.6,
"space": "sell",
"type": "decimal",
"default": 0.399,
"load": true
},
"exit_rsi_threshold": {
"optimize": true,
"min": 55,
"max": 72,
"space": "sell",
"type": "int",
"default": 56,
"default": 0.989,
"load": true
},
"exit_volume_multiplier": {
"optimize": true,
"min": 2,
"max": 7,
"min": 1.5,
"max": 3,
"space": "sell",
"type": "decimal",
"default": 5.185,
"default": 2.146,
"load": true
},
"max_reduce_adjustments": {
"optimize": true,
"min": 1,
"max": 4,
"max": 3,
"space": "sell",
"type": "int",
"default": 4,
"default": 2,
"load": true
},
"reduce_coefficient": {
"optimize": true,
"min": 0.15,
"max": 0.55,
"min": 0.1,
"max": 0.6,
"space": "sell",
"type": "decimal",
"default": 0.18,
"default": 0.346,
"load": true
},
"reduce_profit_base": {
"optimize": true,
"min": 0.02,
"min": 0.05,
"max": 0.12,
"space": "sell",
"type": "decimal",
"default": 0.044,
"default": 0.11,
"load": true
},
"rsi_overbought": {
"optimize": true,
"min": 57,
"max": 59,
"space": "sell",
"type": "int",
"default": 57,
"load": true
}
}
},
"step_id": 3
}
},
{
"_index": "freqai.propertygroup-2025.11",
"_id": "797a452ce36e0fdd",
"_score": 1,
"_source": {
"id": "3",
"hash_id": "797a452ce36e0fdd",
"name": "第三轮优化",
"space": "buy",
"epoch": 100,
"description": "剧烈拉升检测与加仓策略优化",
"properties": {
"add_position_callback": {
"optimize": true,
"min": 0.03,
"max": 0.06,
"space": "buy",
"type": "decimal",
"default": 0.049,
"load": true
},
"adjust_multiplier": {
"optimize": true,
"min": 0.05,
"max": 0.6,
"space": "buy",
"type": "decimal",
"default": 0.193,
"load": true
},
"h1_max_candles": {
"optimize": true,
"min": 100,
"max": 300,
"space": "buy",
"type": "int",
"default": 225,
"load": true
},
"h1_max_consecutive_candles": {
"optimize": true,
"min": 1,
"max": 4,
"space": "buy",
"type": "int",
"default": 1,
"load": true
},
"h1_rapid_rise_threshold": {
"optimize": true,
"min": 0.05,
"max": 0.15,
"space": "buy",
"type": "decimal",
"default": 0.14,
"load": true
},
"max_entry_adjustments": {
"optimize": true,
"min": 2,
"max": 5,
"space": "buy",
"type": "int",
"default": 4,
"load": true
}
},
"step_id": 2
}
}
]