通达信底分型选股公式源码
发布日期: 2025-07-24 | 阅读量:49
VAR1:= HIGH< REF(HIGH,1) AND LOW< REF(LOW,1);
VAR0:= HIGH< REF(HIGH,1) AND LOW>REF(LOW,1);
VAR2:= HIGH>REF(HIGH,1) AND LOW< REF(LOW,1);
VAR3:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
VAR5:= REF(HIGH,2) < HIGH AND REF(LOW,2) < LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);
VAR6:= COUNT(VAR1,6)>=3 AND COUNT(VAR0 OR VAR2,5)=0 AND LLVBARS(LOW,6) = 1 AND HHVBARS(HIGH,6) >= 5 AND VAR3;
VAR7:= COUNT(VAR1,7)>=3 AND COUNT(VAR0 OR VAR2,6)=1 AND LLVBARS(LOW,7) = 2 AND HHVBARS(HIGH,7) >= 6 AND VAR5;
VAR8:= COUNT(VAR1,7)>=3 AND COUNT(VAR0 OR VAR2,6)=1 AND LLVBARS(LOW,7) = 1 AND HHVBARS(HIGH,7) >= 6 AND VAR3;
VAR9:= COUNT(VAR1,8)>=3 AND COUNT(VAR0 OR VAR2,7)<=2 AND LLVBARS(LOW,8) = 2 AND HHVBARS(HIGH,8) >= 7 AND VAR5;
VAR10:= COUNT(VAR1,8)>=3 AND COUNT(VAR0 OR VAR2,7)<=2 AND LLVBARS(LOW,8) = 1 AND HHVBARS(HIGH,8) >= 7 AND VAR3;
VAR11:= COUNT(VAR1,9)>=3 AND COUNT(VAR0 OR VAR2,8)<=3 AND LLVBARS(LOW,9) = 2 AND HHVBARS(HIGH,9) >= 8 AND VAR5;
VAR12:= COUNT(VAR1,9)>=3 AND COUNT(VAR0 OR VAR2,8)<=3 AND LLVBARS(LOW,9) = 1 AND HHVBARS(HIGH,9) >= 8 AND VAR3;
VAR13:= COUNT(VAR1,10)>=3 AND COUNT(VAR0 OR VAR2,9)<=4 AND LLVBARS(LOW,10) = 2 AND HHVBARS(HIGH,10) >= 9 AND VAR5;
VAR14:= COUNT(VAR1,10)>=3 AND COUNT(VAR0 OR VAR2,9)<=4 AND LLVBARS(LOW,10) = 1 AND HHVBARS(HIGH,10) >= 9 AND VAR3;
VAR60:= COUNT(VAR1,11)>=3 AND COUNT(VAR0 OR VAR2,10)<=5 AND LLVBARS(LOW,11) = 2 AND HHVBARS(HIGH,11) >= 10 AND VAR5;
DFX:=VAR6 OR VAR7 OR VAR8 OR VAR9 OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR60;
AA:=REF(L,1)< REF(L,2) AND REF(L,1)< L AND REF(H,1)< REF(H,2) AND REF(H,1)< H AND C>REF(H,2) AND C>O;
强势底分型:DFX AND AA;

指标公式逻辑介绍
核心逻辑架构
该指标通过复杂的K线形态组合识别潜在的趋势反转点,主要包含两大判断系统:
K线形态过滤系统(VAR1-VAR5):
VAR1:双降K线(高/低点均下降)
VAR0:内包K线(高点降低点升)
VAR2:外包K线(高点升低点降)
VAR3:双升K线(高/低点均上升)
VAR5:特殊双底形态(隔日创新低)
时间窗口验证系统(VAR6-VAR60):
采用6-11日不同周期验证:
要求至少3次双降K线
限制震荡K线数量
最低点位置要求
最高点位置要求
最终需出现双升K线确认
2. 信号触发条件
强势底分型需同时满足:
DFX条件(6-11日形态组合)
AA条件(经典底分型):
前一日双降
当日双升
收盘突破前高
阳线确认