当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码精选:CCI多空波段王,超超抓强势,自用成交量

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、CCI多空波段王

CCI多空波段王,无未来函数

公式用法介绍:
只在200以上和-200以下进场把握高,指标很简单。
做空要等到涨到200以上,出绿线然后跌破200再进空。
做多要等到跌到-200以下,出红线然后涨破-200再进多。

{CCI多空波段王}
SJ:=1;
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
RSI1:=CCI;
AA:=REF(RSI1,N)=HHV(RSI1,2*N+1)*SJ;
BB:=BACKSET(AA,N+1)*SJ;
CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);
A1:=BARSLAST(REF(CC,1));
{顶背离:REF(CLOSE,A1+1)<CLOSE AND REF(RSI1,A1+1)>RSI1 AND CC;}
{DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORFF0000,LINETHICK2;}
{DRAWICON(顶背离,CCI*0.9,6);}
AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);
A2:=BARSLAST(REF(CC2,1));
{底背离:REF(CLOSE,A2+1)>CLOSE AND REF(RSI1,A2+1)<RSI1 AND CC2;}
{DRAWLINE(CC2,RSI1,FILTER(底背离>0,5),RSI1,0),COLORMAGENTA,LINETHICK2;}
{DRAWICON(底背离,CCI*1.1,5);}
上升:IF(CCI>REF(CCI,1),CCI,DRAWNULL),LINETHICK1,COLORRED,DOTLINE;
X:=CROSS(CCI,-100);
{DRAWICON(X,-150,7);}
M:=CROSS(100,CCI);
{DRAWICON(M,150,8);}
IF(CCI>=100,CCI,DRAWNULL),COLORGREEN;
IF(CCI<=-100,CCI,DRAWNULL),COLORRED;
顶部:220*SJ,COLOR0000FF,LINETHICK1;
底部:-220*SJ,COLOR00FF00,LINETHICK1;
STICKLINE(CCI>220,180,CCI,0.5,0), COLORGREEN;
STICKLINE(CCI<-220,-180,CCI,0.5,0), COLORRED;
{股 民 学 院 : http://www.58188.net 整理}



2、超超抓强势 直接加主图

{超超抓强势直接加主图 源码}

 信号非常少啊,看看选股就清楚,半年选股,就如图的17个股票。只做选股更加合适。
 
 
MV5:=EMA(V,5);
MA5:=EMA(C,5);
MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;
MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
换手:=RANGE(VOL/CAPITAL*100,3,15);
BB:= VOL/CAPITAL>0.02 AND VOL/CAPITAL>0.05;
强势股:=IF(MA5角度>70 AND MV5角度>75 ,1,0);
涨速:=CLOSE/REF(CLOSE,1)>1.01;
量比:=VOL/MA(VOL,5)>1.2;
{STS:=STRFIND(STKNAME,'S',1)=0;
ST1:=STRFIND(STKNAME,'ST',1)=0;
ST2:=STRFIND(STKNAME,'*ST',1)=0;
剔除:=STS AND ST1 AND ST2 AND (DYNAINFO(8)>0);}
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
剔除:=S2 AND S3 ; ;
JB:=HHV(VOL,100);
选股:强势股 AND 涨速 AND 换手 AND 量比  AND 剔除  AND JB AND DYNAINFO(23)>DYNAINFO(22) AND DYNAINFO(4)/DYNAINFO(3)>1.02
AND DYNAINFO(7)/DYNAINFO(3)>1.02   AND DYNAINFO(17)>0.5 AND DYNAINFO(13)>1/100;
DRAWTEXT(选股,L*0.99,'↖★抓强势'),COLOR0055AA;
STICKLINE(选股,L,H,0,0),COLOR0088EE;
STICKLINE(选股,C,O+(C-O)/2,3,-1),COLOR0055AA;
STICKLINE(选股,C,O+(C-O)/2,2.8,0),COLOR0066BB;
STICKLINE(选股,C,O+(C-O)/2,2.5,-1),COLOR0077CC;
STICKLINE(选股,C,O+(C-O)/2,2.2,0),COLOR0088DD;
STICKLINE(选股,C,O+(C-O)/2,1.7,-1),COLOR0099EE;
STICKLINE(选股,C,O+(C-O)/2,1.2,0),COLOR00AAFF;
STICKLINE(选股,C,O+(C-O)/2,0.7,-1),COLOR00CCFF;
STICKLINE(选股,C,O+(C-O)/2,0.2,0),COLOR00FFFF;
{股 民 学 院 : http://www.58188.net 整理}



3、自用成交量,可以看到黄金柱 量缩 倍量 虚拟量 百日地量

{自用成交量}
 
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,3,-1),COLOR00C0C0;
VOL,VOLSTICK;
倍量:(VOL/REF(VOL,1)>2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2),COLORFF00FF;
STICKLINE(倍量,0,V,3,0),COLORFF00FF;
地量:LLV(VOL,15)=VOL,COLORWHITE;
STICKLINE(地量,0,V,1,0),COLORWHITE;
三十地:LLV(VOL,30)=VOL,COLORFFDE00;
STICKLINE(三十地,0,V,3,0),COLOR008800;
倍缩量:VOL/REF(VOL,1)<0.5,COLORYELLOW;
STICKLINE(倍缩量,0,V,3,0),COLORYELLOW;
缩量涨:COUNT(C>REF(C,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2,COLORGREEN;
STICKLINE(缩量涨,0,V,3,0),COLORGREEN;
黑跳: IF(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1),0.5,0),COLORFF0080;
STICKLINE(黑跳,0,V,3,0),COLORFF0080;
红跳:IF(LOW>REF(HIGH,1) AND COUNT(OPEN<CLOSE,1),0.5,0),COLOR8000FF;
STICKLINE(红跳,0,V,3,0),COLOR8000FF;
真阳或假阴:=C>O OR C>REF(C,1);
收阳:= REF(真阳或假阴,3);
倍量1:=REF(倍量,3);
高量:=REF(V,3)>=HHV(V,7);
三日不破:= LLV(C,3)>=REF(L,3);
价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升}
量缩:=COUNT(V<=REF(V,1),3)=3;
连阳:= COUNT(真阳或假阴,3)=3;
倍量将军柱:= 倍量1 AND 三日不破 AND 收阳;
高量将军柱:= 高量 AND 三日不破 AND 收阳;
将军柱:= 倍量将军柱 OR 高量将军柱;
黄金柱:将军柱 AND 价升 AND 量缩 AND 连阳 ,COLOR0077FF;
DRAWICON(黄金柱,V+0.1,1);
长阴短柱:C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
DRAWTEXT(长阴短柱 ,V,'!'),COLORLICYAN;
 
 
XGX7:=ABS((VOL-REF(VOL,7))/REF(VOL,7))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,7) AND
REF(VOL,2)<REF(VOL,7) AND
REF(VOL,3)<REF(VOL,7) AND
REF(VOL,(7-3))<REF(VOL,7) AND
REF(VOL,(7-2))<REF(VOL,7) AND
REF(VOL,(7-1))<REF(VOL,7);
 
XGX8:=ABS((VOL-REF(VOL,8))/REF(VOL,8))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,8) AND
REF(VOL,2)<REF(VOL,8) AND
REF(VOL,3)<REF(VOL,8) AND
REF(VOL,(8-3))<REF(VOL,8) AND
REF(VOL,(8-2))<REF(VOL,8) AND
REF(VOL,(8-1))<REF(VOL,8);
 
XGX9:=ABS((VOL-REF(VOL,9))/REF(VOL,9))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,9) AND
REF(VOL,2)<REF(VOL,9) AND
REF(VOL,3)<REF(VOL,9) AND
REF(VOL,(9-3))<REF(VOL,9) AND
REF(VOL,(9-2))<REF(VOL,9) AND
REF(VOL,(9-1))<REF(VOL,9);
 
XGX10:=ABS((VOL-REF(VOL,10))/REF(VOL,10))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,10) AND
REF(VOL,2)<REF(VOL,10) AND
REF(VOL,3)<REF(VOL,10) AND
REF(VOL,(10-3))<REF(VOL,10) AND
REF(VOL,(10-2))<REF(VOL,10) AND
REF(VOL,(10-1))<REF(VOL,10);
 
XGX11:=ABS((VOL-REF(VOL,11))/REF(VOL,11))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,11) AND
REF(VOL,2)<REF(VOL,11) AND
REF(VOL,3)<REF(VOL,11) AND
REF(VOL,(11-3))<REF(VOL,11) AND
REF(VOL,(11-2))<REF(VOL,11) AND
REF(VOL,(11-1))<REF(VOL,11);
 
XGX12:=ABS((VOL-REF(VOL,12))/REF(VOL,12))<0.04 AND
VOL>1.8*REF(VOL,2) AND
REF(VOL,1)<REF(VOL,12) AND
REF(VOL,2)<REF(VOL,12) AND
REF(VOL,3)<REF(VOL,12) AND
REF(VOL,(12-3))<REF(VOL,12) AND
REF(VOL,(12-2))<REF(VOL,12) AND
REF(VOL,(12-1))<REF(VOL,12);
 
 
DRAWTEXT(XGX7,V,'7日平量柱'),COLORFFFF00;
DRAWTEXT(XGX8,V,'8日平量柱'),COLORFFFF00;
DRAWTEXT(XGX9,V,'9日平量柱'),COLORFFFF00;
DRAWTEXT(XGX10,V,'10日平量柱'),COLORFFFF00;
DRAWTEXT(XGX11,V,'11日平量柱'),COLORFFFF00;
DRAWTEXT(XGX12,V,'12日平量柱'),COLORFFFF00;
百日地量:LLV(VOL,100)=VOL,COLORWHITE;
STICKLINE(百日地量,0,V,3,0),COLORWHITE;
V1:=CLOSE/REF(CLOSE,3)>=1.1;
V2:=BACKSET(V1,2);
V3:=REF(CLOSE,3)*1.1;
V4:=CROSS(C,V3);
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,3,0),COLOR00007D;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,2.4,0),COLOR0000A6;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,2,0),COLOR0000BB;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,1.4,0),COLOR0000DD;
STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,0.8,0),COLOR0000FF;
M5:MA(VOL,5),COLORFFFFFF;
M20:MA(VOL,20);
M55:MA(VOL,55),COLORGREEN,LINETHICK2;
DRAWICON(CROSS(V,M5) AND CROSS(V,M20) AND C > O,L*0.95,5);
{股 民 学 院 : http://www.58188.net 整理}

上一篇:通达信源码精选:牛暴涨,黄金坑,宝宝寻妖副图和选股

下一篇:通达信源码精选:摸底风暴,打板指标,火车仓位管理