通达信鳄鱼嘴涨停板选股公式源码
发布日期: 2025-07-20 | 阅读量:56
VAR0 := ((C - MA(C,60)) / MA(C,60)) * 100;
VAR1 := (COUNT(MA(C,13) > MA(C,210),100)) >= 95;
VAR2 := (COUNT(VAR0 < 35,100)) >= 80;
VAR3 := (COUNT(C > MA(C,210),100)) >= 95;
VAR4 := (COUNT((((MA(C,13) - MA(C,210)) / MA(C,210)) * 100) < 35,100)) >= 90;
VAR5 := (((REF(C,1) - MA(C,210)) / MA(C,210)) * 100) < 35;
VAR6 := ((((VAR1 AND VAR2) AND VAR3) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > REF(MA(C,210),3))) OR (((VAR4 AND VAR5) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > REF(MA(C,210),3)));
VAR7 := MA(LOW,20) * 1.1;
VAR8 := (((REF(C,1) / REF(C,6)) < 1.15) OR (REF(C,1) < REF(C,3))) OR ((REF((HHV(HIGH,5) - LLV(LOW,5)) / LLV(LOW,5),1)) < 0.15);
VAR9 := (((C / REF(C,1)) > 1.05) AND (C > OPEN)) AND (FROMOPEN <= 240);
VAR10 := REF((((HHV(C,200) / LLV(C,200)) - 1) * 100) <= 40,1);
VAR11 := (C / LLV(LOW,80)) <= 1.45;
VAR12 := (((((CROSS(C,VAR7) AND VAR6) AND VAR9) AND (C > REF(HHV(HIGH,200),1))) AND VAR8) AND VAR10) AND VAR11;
VAR13 := VAR12 AND ((REF(BARSLAST(VAR12),1) >= 50) OR (BARSSINCE(VAR12) = 0));
VAR14 := ((C - MA(C,210)) / MA(C,210)) * 100;
VAR15 := (COUNT(MA(C,13) > MA(C,210),50)) >= 30;
VAR16 := (COUNT(VAR14 < 35,50)) >= 30;
VAR17 := (COUNT(C > MA(C,210),50)) >= 30;
VAR18 := (COUNT((((MA(C,13) - MA(C,60)) / MA(C,60)) * 100) < 30,60)) >= 20;
VAR19 := ((((REF(C,1) - MA(C,60)) / MA(C,60)) * 100) < 35) AND ((((C - MA(C,60)) / MA(C,60)) * 100) > 0);
VAR20 := (((((VAR15 AND VAR16) AND VAR17) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > MA(C,250))) OR (((VAR18 AND VAR19) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > MA(C,250)))) OR ((VAR18 AND VAR19) AND (MA(C,60) > MA(C,250)));
VAR21 := (((REF(C,1) / REF(LOW,6)) < 1.15) OR (REF(C,1) < REF(C,3))) OR ((REF((HHV(HIGH,5) - LLV(LOW,5)) / LLV(LOW,5),1)) < 0.15);
VAR22 := (((C / REF(C,1)) > 1.065) AND (C > OPEN)) AND (FROMOPEN <= 240);
VAR23 := REF((((HHV(C,15) / LLV(C,15)) - 1) * 100) <= 15,1);
VAR24 := (C / LLV(LOW,80)) <= 1.45;
VAR25 := (((((CROSS(C,VAR7) AND VAR20) AND VAR24) AND VAR22) AND (C > REF(HHV(HIGH,50),1))) AND VAR21) AND VAR23;
VAR26 := VAR25 AND ((REF(BARSLAST(VAR25),1) > 50) OR (BARSSINCE(VAR25) = 0));
鳄鱼嘴涨停板 : VAR13 OR VAR26;
VAR1 := (COUNT(MA(C,13) > MA(C,210),100)) >= 95;
VAR2 := (COUNT(VAR0 < 35,100)) >= 80;
VAR3 := (COUNT(C > MA(C,210),100)) >= 95;
VAR4 := (COUNT((((MA(C,13) - MA(C,210)) / MA(C,210)) * 100) < 35,100)) >= 90;
VAR5 := (((REF(C,1) - MA(C,210)) / MA(C,210)) * 100) < 35;
VAR6 := ((((VAR1 AND VAR2) AND VAR3) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > REF(MA(C,210),3))) OR (((VAR4 AND VAR5) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > REF(MA(C,210),3)));
VAR7 := MA(LOW,20) * 1.1;
VAR8 := (((REF(C,1) / REF(C,6)) < 1.15) OR (REF(C,1) < REF(C,3))) OR ((REF((HHV(HIGH,5) - LLV(LOW,5)) / LLV(LOW,5),1)) < 0.15);
VAR9 := (((C / REF(C,1)) > 1.05) AND (C > OPEN)) AND (FROMOPEN <= 240);
VAR10 := REF((((HHV(C,200) / LLV(C,200)) - 1) * 100) <= 40,1);
VAR11 := (C / LLV(LOW,80)) <= 1.45;
VAR12 := (((((CROSS(C,VAR7) AND VAR6) AND VAR9) AND (C > REF(HHV(HIGH,200),1))) AND VAR8) AND VAR10) AND VAR11;
VAR13 := VAR12 AND ((REF(BARSLAST(VAR12),1) >= 50) OR (BARSSINCE(VAR12) = 0));
VAR14 := ((C - MA(C,210)) / MA(C,210)) * 100;
VAR15 := (COUNT(MA(C,13) > MA(C,210),50)) >= 30;
VAR16 := (COUNT(VAR14 < 35,50)) >= 30;
VAR17 := (COUNT(C > MA(C,210),50)) >= 30;
VAR18 := (COUNT((((MA(C,13) - MA(C,60)) / MA(C,60)) * 100) < 30,60)) >= 20;
VAR19 := ((((REF(C,1) - MA(C,60)) / MA(C,60)) * 100) < 35) AND ((((C - MA(C,60)) / MA(C,60)) * 100) > 0);
VAR20 := (((((VAR15 AND VAR16) AND VAR17) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > MA(C,250))) OR (((VAR18 AND VAR19) AND (MA(C,13) > MA(C,210))) AND (MA(C,210) > MA(C,250)))) OR ((VAR18 AND VAR19) AND (MA(C,60) > MA(C,250)));
VAR21 := (((REF(C,1) / REF(LOW,6)) < 1.15) OR (REF(C,1) < REF(C,3))) OR ((REF((HHV(HIGH,5) - LLV(LOW,5)) / LLV(LOW,5),1)) < 0.15);
VAR22 := (((C / REF(C,1)) > 1.065) AND (C > OPEN)) AND (FROMOPEN <= 240);
VAR23 := REF((((HHV(C,15) / LLV(C,15)) - 1) * 100) <= 15,1);
VAR24 := (C / LLV(LOW,80)) <= 1.45;
VAR25 := (((((CROSS(C,VAR7) AND VAR20) AND VAR24) AND VAR22) AND (C > REF(HHV(HIGH,50),1))) AND VAR21) AND VAR23;
VAR26 := VAR25 AND ((REF(BARSLAST(VAR25),1) > 50) OR (BARSSINCE(VAR25) = 0));
鳄鱼嘴涨停板 : VAR13 OR VAR26;

指标公式逻辑介绍
系统设计理念
本系统通过多维度条件组合捕捉即将突破的涨停板机会,主要基于以下三大核心逻辑:
长期趋势确认:通过210日均线判断个股处于牛市通道
短期爆发动能:识别突破20日均线1.1倍的关键价位
风险控制过滤:排除波动过大或涨幅已高的个股
1.2 信号触发机制
系统包含两套独立的触发条件(VAR13和VAR26),满足任意条件即发出"鳄鱼嘴涨停板"信号:
VAR13:基于210日长期均线系统
VAR26:基于60日中期均线系统
2. 关键指标体系
2.1 趋势确认指标
长期牛市确认:
13日均线>210日均线持续95日以上(VAR1)
收盘价>210日均线持续95日以上(VAR3)
210日均线保持向上(VAR6)
中期趋势过滤:
13日均线>60日均线(VAR18)
60日均线>250日均线(VAR20)
2.2 价格突破系统
关键突破线:20日均线×1.1(VAR7)
突破确认:
当日涨幅>5%(VAR9)或>6.5%(VAR22)
收盘价创新高(VAR12/VAR25)
盘中突破关键价位(CROSS(C,VAR7))
2.3 风险控制模块
涨幅限制:
近6日涨幅<15%(VAR8/VAR21)
80日内涨幅<45%(VAR11/VAR24)
波动率控制:
5日振幅<15%(VAR8)
15日振幅<15%(VAR23)
历史波动:
200日振幅<40%(VAR10)
3. 信号分类解析
3.1 长期系统信号(VAR13)
✅ 触发条件:
13/210日均线多头排列
价格突破20日线1.1倍
当日涨幅>5%
突破200日新高
满足6项风险控制条件
距上次信号≥50日
3.2 中期系统信号(VAR26)
✅ 触发条件:
13/60/210日均线多头排列
价格突破20日线1.1倍
当日涨幅>6.5%
突破50日新高
满足5项风险控制条件
距上次信号>50日
4. 系统优势
三维过滤:趋势+突破+风控三重验证
自适应参数:根据市场状态自动选择长/中期策略
涨停预判:捕捉涨停前关键突破点
防追高机制:严格限制近期涨幅
信号稀缺性:50日冷却期保证信号质量