beyond202104 发表于 2024-11-25 16:44:54

【龙头异动】主副图指标选股,高低切换,新龙头股捕捉术

通达信选股公式如何设置:

安装帮助:电脑版预警    手机版导入   电脑版导入
今天给大家分享的指标名为“ 龙头异动 ”副图指标,包含选股指标,指标不含未来函数。信号少但准确度高。
下面介绍指标使用方法:
[*]市场高低切阶段:本指标专注于市场出现高低切换信号时,寻找低位新龙头股的机会。使用者需要判断当前市场是否已进入高低切换阶段。

使用方法:
[*]主图信号:当主图出现大阳线加上半路信号时,表示市场可能处于高低切换阶段,这是初步的买入信号。
[*]副图信号:副图出现飞机信号与主图信号共振,确认为确定性的半路追涨买点。

[*]确定性买点:确定性买点出现后,根据主图的加仓信号进行加仓操作,无论是低吸、半路还是打板,都是可行的操作策略。

[*]卖点需要结合市场情绪、个股基本面以及指标的其他卖出信号来综合判断。

龙头异动主图源码
A1:MA(CLOSE,5);A2:MA(CLOSE,10);
A3:MA(CLOSE,20);
A4:=MA(CLOSE,30);
A5:=MA(CLOSE,45);
A6:MA(CLOSE,60);
V1:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
V2:=2*ABS(V1);
V3:=100-(100-3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1)+2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1),15,1));
V4:=100-(100-3*SMA((O-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1)+2*SMA(SMA((O-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1),15,1));
V5:=(H+L+C)/3;
V6:=(V5-MA(V5,10))/(0.015*AVEDEV(V5,10));
V7:=(V5-MA(V5,30))/(0.015*AVEDEV(V5,30));
V8:=IF(V6>=150 AND V6<200 AND V7>=150 AND V7<200,10,0);
V9:=IF(V6<=-150 AND V6>-200 AND V7<=-150 AND V7>-200,-10,V8);
VA:=(C-MA(C,13))/MA(C,13)*100;
VB:=100-ABS(VA);
VC:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2
*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VD:=3*SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))
*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VE:=REF(L,1)*0.9;
VF:=L*0.9;
V10:=(VF*V+VE*(CAPITAL-V))/CAPITAL;
V11:=EMA(V10,30);
V12:=V11-C;
V13:=REF(C,1);
V14:=SMA(MAX(C-V13,0),7,1)/SMA(ABS(C-V13),7,1)*100;
V15:=SMA(MAX(C-V13,0),13,1)/SMA(ABS(C-V13),13,1)*100;
V16:=BARSCOUNT(C);
V17:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
V18:=((-100)*(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))+50)*2;
V19:=(C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
V1A:=(SMA(V19,4,1)-50)*2;
V1B:=SMA(V1A,3,1);
V1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
V1D:=SMA(V1C,4,1);
V1E:=SMA(V1D,3,1);
V1F:=(HHV(H,30)-C)/C*100;
V20:=IF(V17<=25 AND V18<-95 AND V1F>20 AND V1B<-30 AND V1E<30
AND V12>=-0.25 AND V14<22 AND V15<28 AND V16>50,80,0);
大趋势:=V3;
S1:=IF(NAMELIKE('S'),0,1);
S2:=IF(NAMELIKE('*'),0,1);
Z3:=NOT(INBLOCK('近期解禁'));
Z4:=NOT(INBLOCK('拟减持'));
Z5:=NOT(INBLOCK('股东减持'));
Z6:=NOT(INBLOCK('基金减持'));
Z7:=NOT(INBLOCK('即将解禁'));
Z8:=IF(CODELIKE('688'),0,1);
Z9:=IF(CODELIKE('8'),0,1);
去掉:=S1 AND S2AND Z3 AND Z4 AND Z5 AND Z6 AND Z7 AND Z8 AND Z9;
顶线:=IF(VB<90,VB,100);
多方:=IF(V1>0,V1,0);
空方:=-IF(V1<0,V2,0);
抄底:=V20;
预警系统:=(IF((V7>=200 AND V6>=150) OR CROSS(65,多方),15,IF(V7<=-200 AND V6<=-150,-15,V9))+65);
AAA:=V3<=REF(V4,1);
BBB:=V3>REF(V4,1);
HSL:=V/CAPITAL*100>10;
ZF:=C/REF(C,1)>1.03;
XG:=BBBAND REF(BBB,1) AND REF(BBB,2) AND REF(BBB,3) AND HSL ;
半路追涨:=FILTER(XG=1,20) AND 去掉 AND C>O AND ZF;
DRAWTEXT(半路追涨,L,'半路'),COLORYELLOW;
今日低吸:=REF(半路追涨,1);
DRAWTEXT(今日低吸,L,'加仓'),COLORYELLOW;
龙头异动副图
DLYZ1:=SUM((WINNER(C)*100),30)/30*0.1;
DLYZ2:=SUM((WINNER(C)*100),20)/20*0.4;
DLYZ3:=SUM((WINNER(C)*100),10)/10*0.3;
DLYZ4:=SUM((WINNER(C)*100),5)/5*0.1;
DLYZ5:=SUM((WINNER(C)*100),3)/3*0.1;
DLYZZ:=DLYZ1+DLYZ2+DLYZ3+DLYZ4+DLYZ5;
赚钱效应:IF(DLYZZ>38,DLYZZ,DLYZZ*1.3),NODRAW;
活跃度:IF(SUMBARS(VOL,CAPITAL)<100,100-SUMBARS(VOL,CAPITAL),1),NODRAW;
VAR1:=MA(C,37);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
开始控盘:=IF(A10,5,0),LINETHICK1,COLORBROWN;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;
有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;
高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;
主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;
A1111:=FINANCE(42);
A211:=DATETODAY(CONST(DATE));
A311:=A211-A1111;
XDATE:=DAYTODATE(A311)+19000000;
上市日期:=STRCAT('上市日期:',CON2STR(XDATE,0));
SSTS1:=STRCAT('上市',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
SSTS3:=STRCAT('累计交易:',CON2STR(TOTALBARSCOUNT,0));
SSTS4:=STRCAT(SSTS3,'周期');
W11:=EMA(C,1);
涨停:=W11/REF(W11,1)>=1.095;
ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);
NTZZT1:=STRCAT(' 距今',CON2STR(CONST(BARSLAST(涨停)),0));
NTZZT2:=STRCAT(NTZZT1,'天有涨停');
GZT1:=STRCAT(' 共涨停',CON2STR(ZTCS,0));GZT2:=STRCAT(GZT1,'次');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
龙虎榜潜力:=STRCAT('【涨停统计】',ZTTJ2);
AC:=IF(CODELIKE('688'),0,1);
换手:=VOL/CAPITAL*100;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*120/FROMOPEN*5,2,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DY:=CURRBARSCOUNT=1 AND C<REF(C,1);
DY2:=REF(V2,1)-DY;
TT:=(V2*1.01-REF(V2,1));
TT2:=(REF(V2*1.01,1)-REF(V2,2));
YY:=TT>3*ABS(TT2);
TT1:=EMA(V2,15);
A111:=COST(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
筹码:=A333/A444*100<30,LINETHICK0;
BU1:=HHV(HIGH,250);
BU2:=LLV(LOW,250);
BU3:=BU1-BU2;
BU4:=(A444-BU2);
比例:=A444<(BU3*04+BU2),LINETHICK0;
吸筹结束:=筹码 AND 比例;
BU5:=C/REF(C,1)>1.04; {AND V/REF(V,1)>2;{ AND H=C;}
主力持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);
主力持仓:=主力持仓%>=75 {AND 主力持仓%<=91} AND C>0 AND CLOSE>OPEN;
强庄:=FILTER(主力持仓 AND 吸筹结束 AND BU4 AND WINNER(C)>=0.90 AND BU5 AND C/REF(C,1)>1.092 AND C=H AND C<40 AND ACAND 换手<20 ,10);
X_1:=(2*CLOSE+HIGH+LOW)/4;
X_2:=LLV(LOW,5);
X_3:=HHV(HIGH,5);
X_4:=EMA((X_1-X_2)/(X_3-X_2)*100,5);
X_5:=MA(X_4,2);
X_6:=REF(CLOSE,1)/REF(CLOSE,2)<0.95;
X_7:=X_5<20 AND X_6 AND CLOSE>LOW AND OPEN>LOW;
X_8:=CLOSE/REF(CLOSE,3)<0.95;
X_9:=REF(X_8,1)=1 AND CLOSE/REF(CLOSE,1)>1.025;
X_10:=VOL>REF(HHV(VOL,10),1) AND NOT(OPEN=CLOSE) AND HIGH/CLOSE<1.0007;
X_11:=REF(EVERY(MA(CLOSE,5)<MA(CLOSE,10),5),1) AND VOL/MA(VOL,10)>1.8;
X_12:=COUNT(X_7=1,3)>0 AND REF(CLOSE,1)<REF(CLOSE,2);
X_13:=VOL/REF(VOL,1)>1.7 AND REF(OPEN,1)<100;
跟庄乾坤:X_9 AND X_10 AND X_11 AND X_12 AND X_13;
DRAWTEXT(跟庄乾坤,10,'--跟庄乾坤'),COLORMAGENTA;
STICKLINE(跟庄乾坤,14,12,3.5,0),COLOR0000FF;
STICKLINE(跟庄乾坤,15,14.9,1.7,0),COLOR0000FF;
STICKLINE(跟庄乾坤,20.11,9.6,0.1,0),COLOR0000FF;
STICKLINE(跟庄乾坤,19.16,9.2,0.3,0),COLOR0000FF;
STICKLINE(强庄,14,12,3.5,0),COLORA8A8A8;
STICKLINE(强庄,15,14.9,1.7,0),COLORA8A8A8;
STICKLINE(强庄,14.9,14.8,1.9,0),COLORA8A8A8;
STICKLINE(强庄,14.8,14.7,2.1,0),COLORA8A8A8;
STICKLINE(强庄,14.7,14.6,2.3,0),COLORA8A8A8;
STICKLINE(强庄,14.6,14.5,2.5,0),COLORA8A8A8;
STICKLINE(强庄,14.5,14.4,2.7,0),COLORA8A8A8;
STICKLINE(强庄,14.4,14.3,2.9,0),COLORA8A8A8;
STICKLINE(强庄,14.3,14.2,3.1,0),COLORA8A8A8;
STICKLINE(强庄,14.2,14.1,3.3,0),COLORA8A8A8;
STICKLINE(强庄,14.1,14.0,3.5,0),COLORA8A8A8;
STICKLINE(强庄,20.11,9.6,0.1,0),COLORWHITE;
STICKLINE(强庄,19.16,9.2,0.3,0),COLORWHITE;
STICKLINE(强庄,19.12,8.8,0.6,0),COLORWHITE;
STICKLINE(强庄,18.8,18.4,0.9,0),COLORWHITE;
STICKLINE(强庄,18.4,18.0,1.2,0),COLORWHITE;
STICKLINE(强庄,18.0,15.0,1.4,0),COLORWHITE;
STICKLINE(强庄,17.4,17.0,0.6,0),COLORRED;
STICKLINE(强庄,16.5,16.4,1.5,0),COLORBLUE;
STICKLINE(强庄,15.1,14.9,1.5,0),COLORBLUE;
STICKLINE(强庄,14.9,12.5,1.5,0),COLORWHITE;
STICKLINE(强庄,12.5,12.0,1.3,0),COLORRED;
STICKLINE(强庄,12.0,11.3,1,0),COLORRED;
STICKLINE(强庄,11.3,10.7,0.7,0),COLORRED;
STICKLINE(强庄,10.77,10.1,0.3,0),COLORRED;
STICKLINE(强庄,12.4799999,12.1799999,1,0),COLORYELLOW;
STICKLINE(强庄,12.1799999,11.8799999,0.5,0),COLORYELLOW;
STICKLINE(强庄,11.8799999,11.58,0.1,0),COLORYELLOW;
STICKLINE(强庄,16.0,15.5,0.5,0),COLORRED;
龙头异动选股
QXS:=NOT(CODELIKE('4'));
QKC:=NOT(CODELIKE('688'));
QST:=IF(NAMELIKE('S'),0,1);
QXX:=IF(NAMELIKE('*'),0,1);
QBJ:=NOT(CODELIKE('8'));
AAA:=QXS AND QST AND QKC AND QXX AND QBJ;
龙头:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
主线题材:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
市场情绪:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF00FF;
支线反馈:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK3;
龙头合力:=BARSLASTCOUNT(龙头=100 AND 主线题材=100 AND{微信公众号:彩虹桥投资学习}市场情绪 AND 支线反馈=100)=1;
龙头合力 AND AAA;








页: [1]
查看完整版本: 【龙头异动】主副图指标选股,高低切换,新龙头股捕捉术