查看: 106|回复: 0

通达信量化变盘主副图指标公式,妖股潜伏

[复制链接]

937

主题

90

回帖

2万

积分

管理员

积分
29314
发表于 2025-2-18 13:58:06 | 显示全部楼层 |阅读模式

大家好,我是仓鼠哥,专注于指标评测及量化研究,帮你囤满粮,我们一起度过所有的寒冬。
量化变盘说明
该指标属于低吸潜伏类指标,通过副图趋势线合一来捕捉妖股变盘信号,当主图出现变盘买点时,即为确定性的mai入机会。
  • 密切关注副图趋势线的变化,当趋势线合一出现妖股变盘信号时,需提高警惕。
  • 同时观察主图,一旦主图出现变pan买点,即可考虑进行mai入操作。


量化变盘示图
8aec15fba8e53a38207673d4d44b2049.png
量化变盘主图指标源码
妖股值:=0.15;
妖股值1:=0.15;
变盘点X值:=妖股值/10;
变盘点Y值:=妖股值1/10;
概念:=STRCAT('概念: ',GNBLOCK);
DRAWTEXT_FIX(C>0,0*变盘点X值,0.5*变盘点Y值,0,概念),COLORYELLOW;
地域:=STRCAT(DYBLOCK,'');
DRAWTEXT_FIX(C>0,0*变盘点X值,3.5*变盘点Y值,0,地域),COLORWHITE;
行业:=STRCAT(HYBLOCK,'');
DRAWTEXT_FIX(C>0,4*变盘点X值,3.5*变盘点Y值,0,行业),COLORWHITE;
LTSZ:=STRCAT(STRCAT('总市值:',CON2STR(FINANCE(41)/100000000,2)),' 亿元');
DRAWTEXT_FIX(C>0,8*变盘点X值,3.5*变盘点Y值,0,LTSZ),COLORWHITE;
涨停板1:=C=H&&C/REF(C,1)>1.0975&&C/REF(C,1)<1.11&&FINANCE(3)=1;
涨停板2:=C=H&&C/REF(C,1)>1.1985&&C/REF(C,1)<1.21&&FINANCE(3)=3;
涨停板:=涨停板1 OR 涨停板2;
K线实体:=ABS(C-O)/REF(C,1);
双倍量:=(V/REF(MA(V,5),1)>=2) OR (V/REF(V,1)>=3);
倍量0:=C>O&&双倍量&&C>EMA(C,13)&&V=HHV(V,6);
倍量:=TFILTER(倍量0,C<O&&H<REF(H,1),1);
位置要求:=L/EMA(C,13)<1.05;
SPX0:=H/REF(C,1)>=1.06&&H=HHV(H,6)&&倍量0&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&K线实体>0.01
&&FINANCE(3)=1;
SPCBA1:=H/REF(C,1)>=1.11&&H=HHV(H,6)&&倍量0&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&K线实体>0.02
&&FINANCE(3)=3;
SPCBA2:=SPX0 OR SPCBA1;
SPCBA3:=SPCBA2&&NOT(EXISTR(SPCBA2,6,1));
变盘买点:=FILTER(SPCBA3,5);
STICKLINE(变盘买点,H,L,0,0),COLORFF55FF;
STICKLINE(变盘买点,C,O,3.1,0),COLOR880088;
STICKLINE(变盘买点,C,O,2.6,0),COLORAA00AA;
STICKLINE(变盘买点,C,O,1.9,0),COLORCC00CC;
STICKLINE(变盘买点,C,O,1.1,0),COLOREE00EE;
STICKLINE(变盘买点,C,O,0.2,0),COLORFF44FF;
SPZQ:=BARSLAST(变盘买点);
试盘最高不破:=LAST(H<=REF(H,SPZQ),2,1);
洗盘不破:=COUNT(EMA(C,13)<REF(EMA(C,13),1),SPZQ)<2;
洗盘K00:=C<O&&H<REF(H,1);
洗盘K0:=EXIST(变盘买点,10)&&H<HHV(H,SPZQ+1)&&C>=EMA(C,13)&&L<=REF(C,SPZQ)&&C<O&&COUNT(洗盘K00,SPZQ)<2;
洗盘K:=TFILTER(洗盘K0,变盘买点,1);
XPZQ:=BARSLAST(洗盘K);
妖股变盘K0:=EXISTR(变盘买点,10,3)&&C>REF(H,XPZQ)&&L<REF(H,XPZQ)&&EXISTR(洗盘K,SPZQ,1)&&C>O
&&洗盘不破&&(H-C)/(C-O)<1&&COUNT(C>REF(H,XPZQ),XPZQ)=1;
妖股变盘K1:=EXISTR(变盘买点,10,2)&&EVERY(C>=EMA(C,13),SPZQ)&&C>REF(H,XPZQ)&&O<REF(H,XPZQ)
&&EXISTR(洗盘K,SPZQ,1)&&涨停板&&COUNT(涨停板,10)=1;
妖股变盘K3:=妖股变盘K0 OR 妖股变盘K1;
妖股变盘K:=FILTER(妖股变盘K3,5);
{金柱}
STICKLINE(妖股变盘K,O,C,3.1,0),COLOR00AAFF;
STICKLINE(妖股变盘K,O,C,2.1,0),COLOR00BBFF;
STICKLINE(妖股变盘K,O,C,1.5,0),COLOR00CCFF;
STICKLINE(妖股变盘K,O,C,1,0),COLOR00DDFF;
STICKLINE(妖股变盘K,O,C,0.6,0),COLOR00EEFF;
STICKLINE(妖股变盘K,O,C,0.2,0),COLOR00FFFF;
STICKLINE(妖股变盘K,H,L,0,0),COLOR00FFFF;
{银柱}
STICKLINE(FILTER(妖股变盘K,5),O,L,0,0),COLORFFFFFF;
STICKLINE(FILTER(妖股变盘K,5),O,MAX(O,REF(H,XPZQ)),3.1,0),COLOR555555;
STICKLINE(FILTER(妖股变盘K,5),O,MAX(O,REF(H,XPZQ)),2.6,0),COLOR777777;
STICKLINE(FILTER(妖股变盘K,5),O,MAX(O,REF(H,XPZQ)),1.9,0),COLOR999999;
STICKLINE(FILTER(妖股变盘K,5),O,MAX(O,REF(H,XPZQ)),1.1,0),COLORCCCCCC;
STICKLINE(FILTER(妖股变盘K,5),O,MAX(O,REF(H,XPZQ)),0.2,0),COLORFFFFFF;
主升K0:=H>REF(H,XPZQ)&&H/REF(C,1)>1.03&&C>O&&EXIST(变盘买点,10)
&&EXIST(洗盘K,SPZQ)&&C<REF(H,XPZQ)&&NOT(EXIST(妖股变盘K,SPZQ));
主升K1:=EXISTR(变盘买点,1,1)&&C>O&&C<REF(H,1)&&C>REF(C,1)&&H<REF(H,1);
主升K2:=主升K0 OR 主升K1;
主升K:=FILTER(主升K2,5);
STICKLINE(主升K,H,L,0,0),COLOR0000FF;
STICKLINE(主升K,C,O,3.1,0),COLOR000099;
STICKLINE(主升K,C,O,2,0),COLOR0000BB;
STICKLINE(主升K,C,O,1,0),COLOR0000DD;
STICKLINE(主升K,C,O,0.2,0),COLOR0000FF;
妖股趋势:EMA(C,13),COLORYELLOW,LINETHICK2;
IF(妖股趋势<REF(妖股趋势,1),妖股趋势,DRAWNULL), COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR,妖股趋势, '妖股趋势'),COLORWHITE;
DRAWTEXT(FILTER(妖股变盘K,10),L*0.98,'↖起爆K'),COLORWHITE;
DRAWTEXT(主升K,L*0.99,'↖主升K'),COLORWHITE;
DRAWTEXT(洗盘K,H*1.01,'↙震仓K'),COLORWHITE;
DRAWTEXT(变盘买点&&NOT(妖股变盘K),(C+O)*0.5,'变盘买点'),COLORYELLOW;
KK1:=SUMBARS(洗盘K,1);
KK2:=SUMBARS(变盘买点,1);
STICKLINE(KK1<10&&KK2<11,REF(H,XPZQ),REF(H,XPZQ),3.1,0),COLORWHITE;
SWL:=(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10;
SWS:=DMA(EMA(CLOSE,20),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))),COLORWHITE,DOTLINE;
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
KMJ:=MA3;
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
ABC1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
ABC2:=(REF(ABC1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC3:=(REF(ABC2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC4:=(REF(ABC3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC5:=(REF(ABC4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC6:=(REF(ABC5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC7:=(REF(ABC6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC8:=(REF(ABC7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC9:=(REF(ABC8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABCA:=(REF(ABC9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABCB:=(REF(ABCA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABCC:=(REF(ABCB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABCD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
ABCE:=(REF(ABCD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABCF:=(REF(ABCE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC10:=(REF(ABCF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC11:=(REF(ABC10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC12:=(REF(ABC11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC13:=(REF(ABC12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC14:=(REF(ABC13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC15:=(REF(ABC14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC16:=(REF(ABC15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC17:=(REF(ABC16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
ABC18:=(REF(ABC17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
ABC19:=((REF(ABCD OR ABCE OR ABCF OR ABC10 OR ABC11 OR ABC12 OR ABC13 OR ABC14 OR ABC15 OR ABC16 OR ABC17 OR ABC18,1)) AND ABC1);
ABC1A:=((REF(ABC1 OR ABC2 OR ABC3 OR ABC4 OR ABC5 OR ABC6 OR ABC7 OR ABC8 OR ABC9 OR ABCA OR ABCB OR ABCC,1)) AND ABCD);
ABC21:=(REF(ABCD,1) AND KMJ AND KMJ<=REF(KMJ,2))*0+DATE;
ABC22:=(REF(ABCD,1) AND KMJ>=REF(KMJ,1) AND KMJ<=REF(KMJ,2))*0+ABC21;
ABC23:=REF(ABC13,1) AND KMJ>=REF(KMJ,1) AND KMJ<=REF(KMJ,2)*0;
ABC24:=IF(ABC22>1230422,0,1);
ABC25:=REF(ABC14,1) AND KMJ<=REF(KMJ,1) AND KMJ>=REF(KMJ,2)*1;
ABC26:=REF(ABC15,1) AND KMJ>=REF(KMJ,1) AND KMJ<=REF(KMJ,2)*2;
CO:=(C-O);
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
阻力:=2*E-LOW;
支撑:=2*E-HIGH;
DRAWTEXT_FIX(C!=0,0.89,0.85,0,STRCAT('短期阻力位: ',STRCAT(CON2STR(阻力,2),' '))),COLORFFFF00;{COLOR346536;}
DRAWTEXT_FIX(C!=0,0.89,0.95,0,STRCAT('短期支撑位: ',STRCAT(CON2STR(支撑,2),' '))),COLORRED;{COLORBD005F;}
CBA1:=IF(MA(C,5)>MA(C,10),20,0);
CBA2:=IF(MA(C,20)>MA(C,60),10,0);
CBA3:=IF(KDJ.J>KDJ.K,10,0);
CBA4:=IF(MACD.DIF>MACD.DEA,10,0);
CBA5:=IF(MACD.MACD>0,10,0);
CBA6:=IF(V>MA(V,60),10,0);
CBA7:=IF(WINNER(C)>0.5,10,0);
CBA8:=IF(C/REF(C,1)>1.03,10,0);
评分:=CBA1+CBA2+CBA3+CBA4+CBA5+CBA6+CBA7+CBA8;
DRAWTEXT_FIX(V>O,0.89,0.75,0,STRCAT('量化强度分: ',STRCAT(CON2STR(评分,2),' '))),COLOR00AAFF;

量化变盘副图指标源码
N:=10;CG:MA((LOW+HIGH+CLOSE*2)/4,N);
FL:HHV(CG,3),COLORGREEN,POINTDOT;
FS:IF(CG<FL,(CG-(FL-CG)),FL),COLORGREEN;
FL1:HHV(CG,5),COLORGREEN,POINTDOT;
FS1:IF(CG<FL1,(CG-(FL1-CG)),FL1),COLORGREEN;
FL2:HHV(CG,7),COLORGREEN,POINTDOT;
FS2:IF(CG<FL2,(CG-(FL2-CG)),FL2),COLORGREEN;
FL3:HHV(CG,9),COLORFFABA3,LINETHICK2;
FS3:IF(CG<FL3,(CG-(FL3-CG)),FL3),COLORRED,LINETHICK2;
ZLZC1:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.618));
ZLZC2:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.5));
ZLZC3:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.382));
DRAWTEXT_FIX(C>O,0,0.9,0,'微信公众号:股指标网'),COLOR0000FF;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34) AND EMA(X1,13)>REF(EMA(X1,13),1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
换手:=100*V/CAPITAL;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'妖股变盘'),COLORYELLOW;
量化变盘选股指标源码
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
XG:FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);

温馨提示:以上内容为互联网获取公开信息,并非任何推荐,观点仅供参考,个人投资行为,与本号无关。股市有风险,投资需谨慎。


量化变盘.tn6

24.77 KB, 下载次数: 39

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

指标评测

股指标

建议反馈

常见问题

股指标评测

商务合作

新闻媒体

量化投资研究社

联系我们

微信:ZBPC88

备用微信:cqcangshu

邮箱:1099750285@qq.com

关注微信公众号

QQ|手机版|小黑屋|股指标网 ( 渝ICP备2024026571号-1 )股指标

GMT+8, 2025-4-7 05:39 , Processed in 0.148293 second(s), 30 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.