alphasift 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alphasift/__init__.py +52 -0
- alphasift/__main__.py +7 -0
- alphasift/audit.py +191 -0
- alphasift/candidate_context.py +738 -0
- alphasift/cli.py +2797 -0
- alphasift/config.py +705 -0
- alphasift/context.py +672 -0
- alphasift/daily.py +1256 -0
- alphasift/daily_brief.py +593 -0
- alphasift/daily_report.py +1115 -0
- alphasift/daily_report_html.py +1257 -0
- alphasift/doctor.py +1123 -0
- alphasift/dsa.py +302 -0
- alphasift/dsa_adapter.py +178 -0
- alphasift/dsa_provider.py +192 -0
- alphasift/evaluate.py +2418 -0
- alphasift/filter.py +517 -0
- alphasift/hotspot.py +1713 -0
- alphasift/industry.py +959 -0
- alphasift/llm_client.py +349 -0
- alphasift/market_digest.py +284 -0
- alphasift/market_news.py +446 -0
- alphasift/market_regime.py +578 -0
- alphasift/markets.py +160 -0
- alphasift/mcp.py +720 -0
- alphasift/models.py +315 -0
- alphasift/normalize.py +113 -0
- alphasift/notify.py +2608 -0
- alphasift/overview.py +225 -0
- alphasift/pack.py +1470 -0
- alphasift/pack_features.py +431 -0
- alphasift/pattern_replay.py +1449 -0
- alphasift/patterns/bottom_volume_yang.yaml +32 -0
- alphasift/patterns/box_breakout.yaml +36 -0
- alphasift/patterns/double_bottom_breakout.yaml +38 -0
- alphasift/patterns/ma20_shrink_pullback.yaml +37 -0
- alphasift/patterns/shooting_star_confirm.yaml +49 -0
- alphasift/patterns/single_yang_hold.yaml +44 -0
- alphasift/patterns/steady_trend_breakout.yaml +39 -0
- alphasift/patterns/three_white_soldiers.yaml +72 -0
- alphasift/patterns/three_white_soldiers_pullback.yaml +91 -0
- alphasift/patterns.py +1233 -0
- alphasift/performance_history.py +297 -0
- alphasift/pipeline.py +1010 -0
- alphasift/post_analysis.py +337 -0
- alphasift/ranker.py +990 -0
- alphasift/report.py +379 -0
- alphasift/result_schema.py +179 -0
- alphasift/risk.py +452 -0
- alphasift/run_history.py +164 -0
- alphasift/scorer.py +597 -0
- alphasift/server.py +680 -0
- alphasift/snapshot.py +1025 -0
- alphasift/snapshot_us.py +280 -0
- alphasift/snapshot_yahoo.py +358 -0
- alphasift/source_guard.py +70 -0
- alphasift/source_history.py +306 -0
- alphasift/store.py +294 -0
- alphasift/strategies/balanced_alpha.yaml +76 -0
- alphasift/strategies/blue_chip_income.yaml +87 -0
- alphasift/strategies/capital_heat.yaml +74 -0
- alphasift/strategies/dual_low.yaml +80 -0
- alphasift/strategies/global_value.yaml +65 -0
- alphasift/strategies/low_volatility_quality.yaml +95 -0
- alphasift/strategies/momentum_quality.yaml +81 -0
- alphasift/strategies/oversold_reversal.yaml +75 -0
- alphasift/strategies/quality_value.yaml +80 -0
- alphasift/strategies/shrink_pullback.yaml +77 -0
- alphasift/strategies/us_momentum_quality.yaml +74 -0
- alphasift/strategies/volume_breakout.yaml +78 -0
- alphasift/strategy.py +1090 -0
- alphasift/strategy_cards.py +424 -0
- alphasift/strategy_templates.py +291 -0
- alphasift/timeutil.py +38 -0
- alphasift/valuation_kr.py +149 -0
- alphasift/workbench_ui.py +1051 -0
- alphasift-0.3.1.data/data/.env.example +151 -0
- alphasift-0.3.1.data/data/LICENSE +184 -0
- alphasift-0.3.1.data/data/SKILL.md +190 -0
- alphasift-0.3.1.data/data/agents/openai.yaml +7 -0
- alphasift-0.3.1.dist-info/METADATA +312 -0
- alphasift-0.3.1.dist-info/RECORD +86 -0
- alphasift-0.3.1.dist-info/WHEEL +5 -0
- alphasift-0.3.1.dist-info/entry_points.txt +2 -0
- alphasift-0.3.1.dist-info/licenses/LICENSE +184 -0
- alphasift-0.3.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# 均衡多因子策略
|
|
2
|
+
name: balanced_alpha
|
|
3
|
+
display_name: 均衡多因子
|
|
4
|
+
description: 面向中盘活跃股的多因子综合发现,平衡估值、稳定性与量价活跃度(与超大盘红利和极低估值拉开区分)
|
|
5
|
+
version: "1.3"
|
|
6
|
+
category: framework
|
|
7
|
+
tags: [multi_factor, balanced, llm_friendly]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: balanced
|
|
10
|
+
holding_period: watchlist
|
|
11
|
+
execution_style: multi_factor
|
|
12
|
+
market_regime: [neutral, rotation]
|
|
13
|
+
capital_profile: medium_liquidity
|
|
14
|
+
ui_badge: 多因子
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 100000000
|
|
22
|
+
market_cap_min: 5000000000
|
|
23
|
+
market_cap_max: 60000000000
|
|
24
|
+
pe_ttm_min: 12
|
|
25
|
+
pe_ttm_max: 50
|
|
26
|
+
pb_min: 1.5
|
|
27
|
+
pb_max: 6.5
|
|
28
|
+
turnover_rate_min: 1.0
|
|
29
|
+
change_pct_min: -4.0
|
|
30
|
+
change_pct_max: 8.5
|
|
31
|
+
price_min: 3
|
|
32
|
+
price_max: 220
|
|
33
|
+
tech_weight: 0.35
|
|
34
|
+
factor_weights:
|
|
35
|
+
value: 0.24
|
|
36
|
+
activity: 0.20
|
|
37
|
+
stability: 0.18
|
|
38
|
+
liquidity: 0.16
|
|
39
|
+
momentum: 0.12
|
|
40
|
+
reversal: 0.05
|
|
41
|
+
theme_heat: 0.05
|
|
42
|
+
scoring_profile:
|
|
43
|
+
factor_rank_blend: 1.0
|
|
44
|
+
momentum_chase_start_pct: 5.5
|
|
45
|
+
momentum_chase_penalty_slope: 12.0
|
|
46
|
+
activity_ideal_volume_ratio: 2.0
|
|
47
|
+
activity_ideal_turnover_rate: 4.0
|
|
48
|
+
stability_hot_change_pct: 7.0
|
|
49
|
+
risk_profile:
|
|
50
|
+
chase_change_pct: 8.0
|
|
51
|
+
abnormal_volume_ratio: 6.0
|
|
52
|
+
high_turnover_rate: 15.0
|
|
53
|
+
portfolio_profile:
|
|
54
|
+
mode: hard_cap
|
|
55
|
+
max_same_bucket: 1
|
|
56
|
+
concentration_penalty: 4.5
|
|
57
|
+
buckets:
|
|
58
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
59
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
60
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
61
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
62
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
63
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
64
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
65
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
66
|
+
scorecard_profile:
|
|
67
|
+
value_quality_bonus: 2.2
|
|
68
|
+
capital_confirmed_bonus: 1.8
|
|
69
|
+
volume_spike_ratio: 5.5
|
|
70
|
+
hot_money_penalty: 2.2
|
|
71
|
+
ranking_hints: |
|
|
72
|
+
优先关注:
|
|
73
|
+
1. 多个维度都不差的候选,而不是单一指标极端突出
|
|
74
|
+
2. LLM 需要比较候选的风格差异,避免最终名单过度集中在同一逻辑
|
|
75
|
+
3. 对估值、资金、趋势、风险之间的冲突给出清楚解释
|
|
76
|
+
max_output: 5
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# 蓝筹收益质量策略
|
|
2
|
+
name: blue_chip_income
|
|
3
|
+
display_name: 蓝筹收益质量
|
|
4
|
+
description: 面向高流动性大盘蓝筹的收益质量候选,强调合理估值、稳定成交和防守型持有体验
|
|
5
|
+
version: "1.1"
|
|
6
|
+
category: income
|
|
7
|
+
tags: [value, quality, income, blue_chip, defensive, snapshot_only]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: defensive
|
|
10
|
+
holding_period: watchlist
|
|
11
|
+
execution_style: income_quality
|
|
12
|
+
market_regime: [risk_off, range_bound, low_rate]
|
|
13
|
+
capital_profile: high_liquidity
|
|
14
|
+
ui_badge: 蓝筹收益
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 120000000
|
|
22
|
+
market_cap_min: 50000000000
|
|
23
|
+
pe_ttm_min: 0
|
|
24
|
+
pe_ttm_max: 18
|
|
25
|
+
pb_min: 0
|
|
26
|
+
pb_max: 2.5
|
|
27
|
+
turnover_rate_min: 0.4
|
|
28
|
+
volume_ratio_min: 0.6
|
|
29
|
+
change_pct_min: -3.0
|
|
30
|
+
change_pct_max: 4.0
|
|
31
|
+
price_min: 3
|
|
32
|
+
price_max: 180
|
|
33
|
+
tech_weight: 0.18
|
|
34
|
+
factor_weights:
|
|
35
|
+
value: 0.30
|
|
36
|
+
stability: 0.26
|
|
37
|
+
liquidity: 0.18
|
|
38
|
+
size: 0.12
|
|
39
|
+
activity: 0.06
|
|
40
|
+
momentum: 0.05
|
|
41
|
+
reversal: 0.03
|
|
42
|
+
scoring_profile:
|
|
43
|
+
momentum_chase_start_pct: 2.8
|
|
44
|
+
momentum_chase_penalty_slope: 18.0
|
|
45
|
+
momentum_downside_start_pct: -3.0
|
|
46
|
+
activity_ideal_volume_ratio: 1.1
|
|
47
|
+
activity_ideal_turnover_rate: 1.8
|
|
48
|
+
activity_high_volume_ratio: 3.5
|
|
49
|
+
activity_high_turnover_rate: 7.0
|
|
50
|
+
stability_hot_change_pct: 4.0
|
|
51
|
+
stability_high_turnover_rate: 7.0
|
|
52
|
+
stability_high_volume_ratio: 3.5
|
|
53
|
+
risk_profile:
|
|
54
|
+
chase_change_pct: 4.8
|
|
55
|
+
abnormal_volume_ratio: 3.5
|
|
56
|
+
high_turnover_rate: 8.0
|
|
57
|
+
invalid_pe_points: 8.0
|
|
58
|
+
high_pb: 4.5
|
|
59
|
+
high_pb_points: 5.0
|
|
60
|
+
low_llm_confidence: 0.45
|
|
61
|
+
portfolio_profile:
|
|
62
|
+
mode: hard_cap
|
|
63
|
+
max_same_bucket: 1
|
|
64
|
+
concentration_penalty: 4.0
|
|
65
|
+
buckets:
|
|
66
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
67
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
68
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
69
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
70
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
71
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
72
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
73
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
74
|
+
scorecard_profile:
|
|
75
|
+
value_quality_value_min: 74.0
|
|
76
|
+
value_quality_stability_min: 70.0
|
|
77
|
+
value_quality_bonus: 2.5
|
|
78
|
+
low_llm_confidence: 0.45
|
|
79
|
+
low_llm_confidence_penalty: 1.0
|
|
80
|
+
volume_spike_ratio: 3.5
|
|
81
|
+
volume_spike_penalty: 1.5
|
|
82
|
+
ranking_hints: |
|
|
83
|
+
优先关注:
|
|
84
|
+
1. 大市值、高成交额且估值没有明显透支的蓝筹或红利资产
|
|
85
|
+
2. 成交与换手稳定,不依赖单日脉冲量能或短线题材拉升
|
|
86
|
+
3. 行业地位、现金流、分红稳定性或防守属性能解释持有逻辑
|
|
87
|
+
max_output: 5
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# 资金热度策略
|
|
2
|
+
name: capital_heat
|
|
3
|
+
display_name: 资金热度
|
|
4
|
+
description: 资金活跃、量价同步但未极端过热的短线候选
|
|
5
|
+
version: "1.1"
|
|
6
|
+
category: momentum
|
|
7
|
+
tags: [momentum, capital_flow, short_term]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: aggressive
|
|
10
|
+
holding_period: short_term
|
|
11
|
+
execution_style: momentum
|
|
12
|
+
market_regime: [risk_on, high_liquidity]
|
|
13
|
+
capital_profile: high_liquidity
|
|
14
|
+
ui_badge: 资金
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 300000000
|
|
22
|
+
turnover_rate_min: 2.0
|
|
23
|
+
volume_ratio_min: 1.5
|
|
24
|
+
change_pct_min: 1.0
|
|
25
|
+
change_pct_max: 9.5
|
|
26
|
+
price_min: 3
|
|
27
|
+
price_max: 220
|
|
28
|
+
tech_weight: 0.65
|
|
29
|
+
factor_weights:
|
|
30
|
+
momentum: 0.32
|
|
31
|
+
activity: 0.28
|
|
32
|
+
liquidity: 0.16
|
|
33
|
+
theme_heat: 0.10
|
|
34
|
+
stability: 0.10
|
|
35
|
+
reversal: 0.04
|
|
36
|
+
scoring_profile:
|
|
37
|
+
momentum_chase_start_pct: 6.5
|
|
38
|
+
momentum_chase_penalty_slope: 12.0
|
|
39
|
+
activity_ideal_volume_ratio: 2.8
|
|
40
|
+
activity_high_volume_ratio: 7.0
|
|
41
|
+
activity_ideal_turnover_rate: 6.0
|
|
42
|
+
activity_high_turnover_rate: 18.0
|
|
43
|
+
stability_hot_change_pct: 8.5
|
|
44
|
+
theme_heat_overheat_score: 92.0
|
|
45
|
+
theme_heat_overheat_penalty_slope: 0.35
|
|
46
|
+
risk_profile:
|
|
47
|
+
chase_change_pct: 9.3
|
|
48
|
+
abnormal_volume_ratio: 8.0
|
|
49
|
+
high_turnover_rate: 22.0
|
|
50
|
+
weak_signal_score: 40.0
|
|
51
|
+
portfolio_profile:
|
|
52
|
+
mode: hard_cap
|
|
53
|
+
max_same_bucket: 1
|
|
54
|
+
concentration_penalty: 5.0
|
|
55
|
+
buckets:
|
|
56
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
57
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
58
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
59
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
60
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
61
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
62
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
63
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
64
|
+
scorecard_profile:
|
|
65
|
+
capital_confirmed_bonus: 2.4
|
|
66
|
+
volume_spike_ratio: 8.0
|
|
67
|
+
hot_money_activity_min: 95.0
|
|
68
|
+
hot_money_penalty: 1.5
|
|
69
|
+
ranking_hints: |
|
|
70
|
+
优先关注:
|
|
71
|
+
1. 资金热度和价格表现同步,而不是单纯尾盘异动
|
|
72
|
+
2. 涨幅尚未透支,量比和换手率处在可持续区间
|
|
73
|
+
3. 板块或主题有扩散迹象,避免孤立脉冲
|
|
74
|
+
max_output: 5
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# 双低选股策略(低 PE + 低 PB)
|
|
2
|
+
name: dual_low
|
|
3
|
+
display_name: 双低选股
|
|
4
|
+
description: 偏稳健的低估值筛选策略,叠加当日活跃度与形态确认,避免长期只命中静态低估值票
|
|
5
|
+
version: "1.3"
|
|
6
|
+
category: value
|
|
7
|
+
tags: [value, defensive, low_valuation, dynamic_signal]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: defensive
|
|
10
|
+
holding_period: watchlist
|
|
11
|
+
execution_style: mean_reversion
|
|
12
|
+
market_regime: [risk_off, range_bound]
|
|
13
|
+
capital_profile: medium_liquidity
|
|
14
|
+
ui_badge: 价值
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 50000000
|
|
22
|
+
pe_ttm_min: 0
|
|
23
|
+
pe_ttm_max: 15
|
|
24
|
+
pb_min: 0
|
|
25
|
+
pb_max: 1.8
|
|
26
|
+
market_cap_min: 5000000000
|
|
27
|
+
market_cap_max: 60000000000
|
|
28
|
+
price_min: 3
|
|
29
|
+
price_max: 80
|
|
30
|
+
change_pct_min: -4.5
|
|
31
|
+
change_pct_max: 4.5
|
|
32
|
+
tech_weight: 0.2
|
|
33
|
+
factor_weights:
|
|
34
|
+
value: 0.34
|
|
35
|
+
stability: 0.20
|
|
36
|
+
liquidity: 0.14
|
|
37
|
+
momentum: 0.10
|
|
38
|
+
activity: 0.10
|
|
39
|
+
reversal: 0.06
|
|
40
|
+
size: 0.06
|
|
41
|
+
scoring_profile:
|
|
42
|
+
momentum_chase_start_pct: 2.5
|
|
43
|
+
momentum_chase_penalty_slope: 18.0
|
|
44
|
+
momentum_downside_start_pct: -2.5
|
|
45
|
+
activity_ideal_volume_ratio: 1.2
|
|
46
|
+
activity_ideal_turnover_rate: 2.0
|
|
47
|
+
activity_high_volume_ratio: 4.0
|
|
48
|
+
activity_high_turnover_rate: 8.0
|
|
49
|
+
stability_hot_change_pct: 4.0
|
|
50
|
+
stability_high_turnover_rate: 8.0
|
|
51
|
+
stability_high_volume_ratio: 4.0
|
|
52
|
+
risk_profile:
|
|
53
|
+
chase_change_pct: 5.0
|
|
54
|
+
abnormal_volume_ratio: 4.0
|
|
55
|
+
high_turnover_rate: 8.0
|
|
56
|
+
low_llm_confidence: 0.45
|
|
57
|
+
portfolio_profile:
|
|
58
|
+
mode: hard_cap
|
|
59
|
+
max_same_bucket: 1
|
|
60
|
+
concentration_penalty: 4.0
|
|
61
|
+
buckets:
|
|
62
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
63
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
64
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
65
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
66
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
67
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
68
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
69
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
70
|
+
scorecard_profile:
|
|
71
|
+
value_quality_value_min: 72.0
|
|
72
|
+
value_quality_stability_min: 65.0
|
|
73
|
+
value_quality_bonus: 3.0
|
|
74
|
+
volume_spike_ratio: 4.0
|
|
75
|
+
ranking_hints: |
|
|
76
|
+
优先考虑:
|
|
77
|
+
1. 低 PE / 低 PB 仍是基础,但不要只因为便宜反复选择同一批银行、地产、周期股
|
|
78
|
+
2. 优先选择当日成交活跃度适中、没有追高或破位风险的低估值修复候选
|
|
79
|
+
3. 行业地位、现金流、分红稳定性和近期催化能解释估值修复逻辑
|
|
80
|
+
max_output: 5
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# 全球低估值策略:dual_low 的多市场版本(美股 / 港股 / 日本 / 韩国 / 台湾 / 印度)
|
|
2
|
+
#
|
|
3
|
+
# - 快照来自 Yahoo 筛选器,股票池已按市场设了约 10 亿美元等值的市值下限,
|
|
4
|
+
# 因此这里不设成交额、市值、股价这类与币种相关的绝对阈值,只用 PE / PB /
|
|
5
|
+
# 涨跌幅这类各市场可比的条件。
|
|
6
|
+
# - 流动性下限用 avg_amount_usd_min:当前价 × 近 10 日平均成交量估算日均成交额,按市场近似汇率折成美元,
|
|
7
|
+
# 不受盘中时点影响。100 万美元主要剔除港股、台股、印度里成交清淡的标的。
|
|
8
|
+
# - 韩国市场 Yahoo 不提供 PE / PB,改由 Naver Finance 补全(亏损公司没有 PE,不会进入本策略)。
|
|
9
|
+
# - 个别存托凭证(ADR)的 PB 因币种未换算而异常偏低(< 0.1),会被置空,从而不进入本策略。
|
|
10
|
+
# - exclude_st 只作用于中文名称(A 股 ST 约定),对其他市场无影响。
|
|
11
|
+
# - 行业来自 Yahoo 的 11 个板块,用 hard_cap 保证 Top N 中同一板块不超过 2 只。
|
|
12
|
+
name: global_value
|
|
13
|
+
display_name: 全球低估值
|
|
14
|
+
description: 多市场低 PE + 低 PB 价值筛选,叠加当日活跃度与稳定性,按板块硬性分散
|
|
15
|
+
version: "1.1"
|
|
16
|
+
category: value
|
|
17
|
+
tags: [value, defensive, low_valuation, multi_market]
|
|
18
|
+
style:
|
|
19
|
+
risk_profile: defensive
|
|
20
|
+
holding_period: watchlist
|
|
21
|
+
execution_style: mean_reversion
|
|
22
|
+
market_regime: [risk_off, range_bound]
|
|
23
|
+
capital_profile: high_liquidity
|
|
24
|
+
ui_badge: Global
|
|
25
|
+
|
|
26
|
+
screening:
|
|
27
|
+
enabled: true
|
|
28
|
+
market_scope: [us, hk, jp, kr, tw, in]
|
|
29
|
+
hard_filters:
|
|
30
|
+
exclude_st: false
|
|
31
|
+
avg_amount_usd_min: 1000000
|
|
32
|
+
pe_ttm_min: 0
|
|
33
|
+
pe_ttm_max: 18
|
|
34
|
+
pb_min: 0
|
|
35
|
+
pb_max: 2.5
|
|
36
|
+
change_pct_min: -5.0
|
|
37
|
+
change_pct_max: 5.0
|
|
38
|
+
tech_weight: 0.2
|
|
39
|
+
factor_weights:
|
|
40
|
+
value: 0.36
|
|
41
|
+
stability: 0.20
|
|
42
|
+
liquidity: 0.14
|
|
43
|
+
momentum: 0.10
|
|
44
|
+
activity: 0.08
|
|
45
|
+
reversal: 0.06
|
|
46
|
+
size: 0.06
|
|
47
|
+
scoring_profile:
|
|
48
|
+
momentum_chase_start_pct: 3.0
|
|
49
|
+
momentum_chase_penalty_slope: 16.0
|
|
50
|
+
momentum_downside_start_pct: -3.0
|
|
51
|
+
risk_profile:
|
|
52
|
+
chase_change_pct: 5.0
|
|
53
|
+
abnormal_volume_ratio: 4.0
|
|
54
|
+
high_turnover_rate: 8.0
|
|
55
|
+
low_llm_confidence: 0.45
|
|
56
|
+
portfolio_profile:
|
|
57
|
+
mode: hard_cap
|
|
58
|
+
max_same_bucket: 2
|
|
59
|
+
concentration_penalty: 3.0
|
|
60
|
+
ranking_hints: |
|
|
61
|
+
优先考虑:
|
|
62
|
+
1. 低 PE / 低 PB 是基础,但要区分真正被低估和基本面持续恶化的价值陷阱
|
|
63
|
+
2. 注意不同市场的估值中枢不同,同一市场内横向比较更有意义
|
|
64
|
+
3. 现金流、分红稳定性、资产负债表质量和近期催化能解释估值修复逻辑
|
|
65
|
+
max_output: 5
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# 低波动质量策略
|
|
2
|
+
name: low_volatility_quality
|
|
3
|
+
display_name: 低波质量
|
|
4
|
+
description: 偏防守的质量型候选,优先选择波动较低、回撤浅、估值不过热且数据质量可靠的股票
|
|
5
|
+
version: "1.2"
|
|
6
|
+
category: quality
|
|
7
|
+
tags: [quality, defensive, low_volatility, daily_k]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: defensive
|
|
10
|
+
holding_period: swing
|
|
11
|
+
execution_style: quality_defensive
|
|
12
|
+
market_regime: [risk_off, range_bound, low_volatility]
|
|
13
|
+
capital_profile: medium_liquidity
|
|
14
|
+
ui_badge: 质量
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 100000000
|
|
22
|
+
market_cap_min: 10000000000
|
|
23
|
+
market_cap_max: 180000000000
|
|
24
|
+
pe_ttm_min: 9
|
|
25
|
+
pe_ttm_max: 40
|
|
26
|
+
pb_min: 1.2
|
|
27
|
+
pb_max: 5.0
|
|
28
|
+
change_pct_min: -3.0
|
|
29
|
+
change_pct_max: 5.0
|
|
30
|
+
price_min: 4
|
|
31
|
+
price_max: 180
|
|
32
|
+
change_60d_min: -10.0
|
|
33
|
+
change_60d_max: 35.0
|
|
34
|
+
signal_score_min: 55
|
|
35
|
+
range_20d_pct_max: 28.0
|
|
36
|
+
volatility_20d_pct_max: 32.0
|
|
37
|
+
max_drawdown_20d_pct_min: -8.0
|
|
38
|
+
atr_20_pct_max: 4.5
|
|
39
|
+
tech_weight: 0.30
|
|
40
|
+
factor_weights:
|
|
41
|
+
stability: 0.30
|
|
42
|
+
value: 0.20
|
|
43
|
+
liquidity: 0.15
|
|
44
|
+
momentum: 0.12
|
|
45
|
+
activity: 0.08
|
|
46
|
+
size: 0.08
|
|
47
|
+
theme_heat: 0.05
|
|
48
|
+
reversal: 0.02
|
|
49
|
+
scoring_profile:
|
|
50
|
+
factor_rank_blend: 1.0
|
|
51
|
+
momentum_60d_overheat_pct: 32.0
|
|
52
|
+
momentum_chase_start_pct: 4.0
|
|
53
|
+
momentum_chase_penalty_slope: 18.0
|
|
54
|
+
activity_ideal_volume_ratio: 1.4
|
|
55
|
+
activity_ideal_turnover_rate: 2.5
|
|
56
|
+
stability_hot_change_pct: 5.0
|
|
57
|
+
stability_high_volatility_pct: 30.0
|
|
58
|
+
stability_max_drawdown_floor_pct: -8.0
|
|
59
|
+
stability_high_atr_pct: 4.2
|
|
60
|
+
stability_low_daily_quality_score: 88.0
|
|
61
|
+
stability_low_daily_quality_penalty_slope: 0.45
|
|
62
|
+
risk_profile:
|
|
63
|
+
chase_change_pct: 5.5
|
|
64
|
+
abnormal_volume_ratio: 4.5
|
|
65
|
+
high_turnover_rate: 10.0
|
|
66
|
+
weak_signal_score: 52.0
|
|
67
|
+
low_daily_quality_score: 85.0
|
|
68
|
+
low_daily_quality_points: 2.5
|
|
69
|
+
stale_daily_cache_points: 3.0
|
|
70
|
+
fetch_failed_daily_points: 7.0
|
|
71
|
+
portfolio_profile:
|
|
72
|
+
mode: hard_cap
|
|
73
|
+
max_same_bucket: 1
|
|
74
|
+
concentration_penalty: 4.5
|
|
75
|
+
buckets:
|
|
76
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
77
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
78
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
79
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
80
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
81
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
82
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
83
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
84
|
+
scorecard_profile:
|
|
85
|
+
value_quality_stability_min: 72.0
|
|
86
|
+
value_quality_bonus: 2.2
|
|
87
|
+
hot_money_penalty: 2.8
|
|
88
|
+
volume_spike_ratio: 4.0
|
|
89
|
+
volume_spike_penalty: 1.8
|
|
90
|
+
ranking_hints: |
|
|
91
|
+
优先关注:
|
|
92
|
+
1. 20 日波动和 ATR 较低、最大回撤可控,适合防守型观察仓
|
|
93
|
+
2. 估值不过热,日 K 数据质量高,避免 stale/cache 或拉取失败样本
|
|
94
|
+
3. 主题热度可以加分,但不要让短线热度覆盖稳定性和估值约束
|
|
95
|
+
max_output: 5
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# 趋势质量策略
|
|
2
|
+
name: momentum_quality
|
|
3
|
+
display_name: 趋势质量
|
|
4
|
+
description: 要求均线多头排列与60日中期主升趋势,结合基本面与活跃度筛选真趋势领涨候选
|
|
5
|
+
version: "1.3"
|
|
6
|
+
category: framework
|
|
7
|
+
tags: [momentum, quality, trend, daily_k, llm_friendly]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: balanced
|
|
10
|
+
holding_period: swing
|
|
11
|
+
execution_style: trend_quality
|
|
12
|
+
market_regime: [risk_on, trend, rotation]
|
|
13
|
+
capital_profile: high_liquidity
|
|
14
|
+
ui_badge: 趋势
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 150000000
|
|
22
|
+
market_cap_min: 6000000000
|
|
23
|
+
market_cap_max: 200000000000
|
|
24
|
+
pe_ttm_min: 15
|
|
25
|
+
pe_ttm_max: 90
|
|
26
|
+
pb_min: 1.5
|
|
27
|
+
pb_max: 12.0
|
|
28
|
+
turnover_rate_min: 1.2
|
|
29
|
+
change_pct_min: -3.5
|
|
30
|
+
change_pct_max: 7.5
|
|
31
|
+
price_min: 4
|
|
32
|
+
price_max: 220
|
|
33
|
+
change_60d_min: 15.0
|
|
34
|
+
change_60d_max: 75.0
|
|
35
|
+
require_ma_bullish: true
|
|
36
|
+
require_price_above_ma20: true
|
|
37
|
+
signal_score_min: 60
|
|
38
|
+
tech_weight: 0.55
|
|
39
|
+
factor_weights:
|
|
40
|
+
momentum: 0.42
|
|
41
|
+
activity: 0.20
|
|
42
|
+
liquidity: 0.14
|
|
43
|
+
stability: 0.10
|
|
44
|
+
theme_heat: 0.08
|
|
45
|
+
value: 0.06
|
|
46
|
+
scoring_profile:
|
|
47
|
+
factor_rank_blend: 1.0
|
|
48
|
+
momentum_chase_start_pct: 5.0
|
|
49
|
+
momentum_chase_penalty_slope: 14.0
|
|
50
|
+
activity_ideal_volume_ratio: 2.2
|
|
51
|
+
activity_ideal_turnover_rate: 4.5
|
|
52
|
+
stability_hot_change_pct: 6.5
|
|
53
|
+
risk_profile:
|
|
54
|
+
chase_change_pct: 7.5
|
|
55
|
+
abnormal_volume_ratio: 5.5
|
|
56
|
+
high_turnover_rate: 14.0
|
|
57
|
+
low_llm_confidence: 0.50
|
|
58
|
+
portfolio_profile:
|
|
59
|
+
mode: hard_cap
|
|
60
|
+
max_same_bucket: 1
|
|
61
|
+
concentration_penalty: 5.0
|
|
62
|
+
buckets:
|
|
63
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
64
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
65
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
66
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
67
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
68
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
69
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
70
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
71
|
+
scorecard_profile:
|
|
72
|
+
value_quality_bonus: 1.8
|
|
73
|
+
capital_confirmed_bonus: 2.4
|
|
74
|
+
volume_spike_ratio: 5.0
|
|
75
|
+
hot_money_penalty: 2.5
|
|
76
|
+
ranking_hints: |
|
|
77
|
+
优先关注:
|
|
78
|
+
1. 已经确认趋势但还没有进入极端追涨阶段的候选
|
|
79
|
+
2. 基本面质量(估值、资金活跃、稳定性)能为趋势提供支撑
|
|
80
|
+
3. 避免单一题材过度集中,兼顾不同风格的趋势机会
|
|
81
|
+
max_output: 5
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# 超跌反转策略
|
|
2
|
+
name: oversold_reversal
|
|
3
|
+
display_name: 超跌反转
|
|
4
|
+
description: 跌幅可控、流动性仍在、具备修复观察价值的反转候选
|
|
5
|
+
version: "1.1"
|
|
6
|
+
category: reversal
|
|
7
|
+
tags: [reversal, oversold, repair]
|
|
8
|
+
style:
|
|
9
|
+
risk_profile: balanced
|
|
10
|
+
holding_period: short_term
|
|
11
|
+
execution_style: reversal
|
|
12
|
+
market_regime: [oversold_repair, range_bound]
|
|
13
|
+
capital_profile: medium_liquidity
|
|
14
|
+
ui_badge: 反转
|
|
15
|
+
|
|
16
|
+
screening:
|
|
17
|
+
enabled: true
|
|
18
|
+
market_scope: [cn]
|
|
19
|
+
hard_filters:
|
|
20
|
+
exclude_st: true
|
|
21
|
+
amount_min: 80000000
|
|
22
|
+
turnover_rate_min: 1.0
|
|
23
|
+
change_pct_min: -8.0
|
|
24
|
+
change_pct_max: -1.0
|
|
25
|
+
pe_ttm_min: 0
|
|
26
|
+
pe_ttm_max: 80
|
|
27
|
+
pb_min: 0
|
|
28
|
+
pb_max: 8.0
|
|
29
|
+
price_min: 3
|
|
30
|
+
price_max: 180
|
|
31
|
+
tech_weight: 0.45
|
|
32
|
+
factor_weights:
|
|
33
|
+
reversal: 0.40
|
|
34
|
+
stability: 0.20
|
|
35
|
+
liquidity: 0.18
|
|
36
|
+
value: 0.16
|
|
37
|
+
activity: 0.06
|
|
38
|
+
scoring_profile:
|
|
39
|
+
reversal_ideal_change_pct: -3.5
|
|
40
|
+
reversal_collapse_start_pct: -7.0
|
|
41
|
+
reversal_collapse_penalty_slope: 12.0
|
|
42
|
+
reversal_chase_start_pct: 0.0
|
|
43
|
+
rsi_oversold_bonus: 14.0
|
|
44
|
+
momentum_downside_start_pct: -4.0
|
|
45
|
+
activity_ideal_volume_ratio: 1.6
|
|
46
|
+
activity_ideal_turnover_rate: 3.0
|
|
47
|
+
risk_profile:
|
|
48
|
+
breakdown_change_pct: -8.5
|
|
49
|
+
chase_change_pct: 5.0
|
|
50
|
+
abnormal_volume_ratio: 5.0
|
|
51
|
+
high_turnover_rate: 12.0
|
|
52
|
+
weak_signal_score: 35.0
|
|
53
|
+
portfolio_profile:
|
|
54
|
+
mode: hard_cap
|
|
55
|
+
max_same_bucket: 1
|
|
56
|
+
concentration_penalty: 4.5
|
|
57
|
+
buckets:
|
|
58
|
+
金融: [券商, 银行, 保险, 多元金融]
|
|
59
|
+
基建航运: [建筑施工, 基础建设, 港口航运, 航运, 铁路, 公路, 物流]
|
|
60
|
+
消费: [白酒, 食品, 家电, 白色家电, 零售, 消费, 酿酒]
|
|
61
|
+
医药: [医药, 中药, 中药生产, 医疗器械, 生物制品, 化学制药]
|
|
62
|
+
科技电子: [半导体, 电子元件, 消费电子, 计算机软件, AI算力, 通信设备, 光模块]
|
|
63
|
+
新能源: [新能源, 光伏, 锂电, 电池, 储能, 输变电设备]
|
|
64
|
+
周期资源: [钢铁, 煤炭, 有色, 稀有金属, 基本金属, 贵金属, 化工, 石油天然气, 化学原料]
|
|
65
|
+
公用事业: [电力, 燃气, 水务, 环保, 公用事业]
|
|
66
|
+
scorecard_profile:
|
|
67
|
+
controlled_reversal_min: 70.0
|
|
68
|
+
controlled_reversal_bonus: 2.0
|
|
69
|
+
volume_spike_ratio: 5.5
|
|
70
|
+
ranking_hints: |
|
|
71
|
+
优先关注:
|
|
72
|
+
1. 下跌幅度可控、不是基本面或退市风险驱动的连续杀跌
|
|
73
|
+
2. 成交额和换手仍能支撑后续修复,避免流动性塌陷
|
|
74
|
+
3. 若存在错杀、事件落地或板块修复线索,可提高优先级
|
|
75
|
+
max_output: 5
|