一、指标源码
{波段神器主图指标,无未来函数}
DC:=HHV(C,2);
DC1:=LLV(C,2);
MA3:=MA(C,3);
DC4:=(3*C+L+O+H)/6;
TOP1:=(C>REF(C,1) AND C>REF(C,2));
TOP2:=(REF(TOP1,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP3:=(REF(TOP2,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP4:=(REF(TOP3,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP5:=(REF(TOP4,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP6:=(REF(TOP5,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP7:=(REF(TOP6,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP8:=(REF(TOP7,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP9:=(REF(TOP8,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOPA:=(REF(TOP9,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOPB:=(REF(TOPA,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOPC:=(REF(TOPB,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOPD:=(C<REF(C,1) AND C<REF(C,2));
TOPE:=(REF(TOPD,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOPF:=(REF(TOPE,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP10:=(REF(TOPF,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP11:=(REF(TOP10,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP12:=(REF(TOP11,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP13:=(REF(TOP12,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP14:=(REF(TOP13,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP15:=(REF(TOP14,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP16:=(REF(TOP15,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP17:=(REF(TOP16,1) AND C<=REF(C,1) AND C>=REF(C,2));
TOP18:=(REF(TOP17,1) AND C>=REF(C,1) AND C<=REF(C,2));
TOP19:=((REF(TOPD OR TOPE OR TOPF OR TOP10 OR TOP11 OR TOP12 OR TOP13 OR TOP14 OR TOP15 OR TOP16 OR TOP17 OR TOP18,1)) AND TOP1);
TOP1A:=((REF(TOP1 OR TOP2 OR TOP3 OR TOP4 OR TOP5 OR TOP6 OR TOP7 OR TOP8 OR TOP9 OR TOPA OR TOPB OR TOPC,1)) AND TOPD);
红色持股:TOP1 OR TOP2 OR TOP3 OR TOP4 OR TOP5 OR TOP6 OR TOP7 OR TOP8 OR TOP9 OR TOPA OR TOPB OR TOPC,COLOR0000FF,NODRAW;
离场:=IF(红色持股,DC1,DRAWNULL);
明离场价:=离场,COLORFF99FF,NODRAW;
今离场价:REF(离场,1)COLOR0000FF,NODRAW;
青色观望:TOPD OR TOPE OR TOPF OR TOP10 OR TOP11 OR TOP12 OR TOP13 OR TOP14 OR TOP15 OR TOP16 OR TOP17 OR TOP18,COLORFFFF00,NODRAW;
进:=IF(青色观望,DC,DRAWNULL);
明进场价:=进,COLOR33AACC,NODRAW;
今进场价:REF(明进场价,1),COLORFF0000,NODRAW;
短买:TOP19,COLOR33AACC,NODRAW;
品红离场:TOP1A,COLORFF99FF,NODRAW;
急速超跌:(C-MA(C,34))/MA(C,34)*100<-14,COLORFFFFFF,NODRAW;
织女线:(20*DC4+19*REF(DC4,1)+18*REF(DC4,2)+17*REF(DC4,3)+16*REF(DC4,4)+15*REF(DC4,5)+14*REF(DC4,6)+13*REF(DC4,7)+12*REF(DC4,8)+11*REF(DC4,9)+10*REF(DC4,10)+9*REF(DC4,11)+8*REF(DC4,12)+7*REF(DC4,13)+6*REF(DC4,14)+5*REF(DC4,15)+4*REF(DC4,16)+3*REF(DC4,17)+2*REF(DC4,18)+REF(DC4,20))/211,COLOR0000FF;
牵牛线:MA(C,26),COLORFF00FF;
等待:=IF(MA3>织女线,织女线,MA3);
IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF; IF(织女线>REF(织女线,1),织女线,DRAWNULL),LINETHICK2,COLOR0000FF;
IF(织女线<REF(织女线,1),织女线,DRAWNULL),COLOR00FF00; IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;
STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;
STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
STICKLINE(C<O,L,H,0,0),COLOR999900;
STICKLINE(1,C,O,3.5,0),COLOR858500;
STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;
STICKLINE(红色持股,C,O,2.8,0),COLOR000055;
STICKLINE(红色持股,C,O,2,0),COLOR000088;
STICKLINE(红色持股,C,O,1.5,0),COLOR0000AA;
STICKLINE(红色持股,C,O,1,0),COLOR0000CC;
STICKLINE(红色持股,C,O,0.5,0),COLOR0000EE;
STICKLINE(青色观望,C,O,2.8,0),COLOR555500;
STICKLINE(青色观望,C,O,2,0),COLOR888800;
STICKLINE(青色观望,C,O,1.5,0),COLORAAAA00;
STICKLINE(青色观望,C,O,1,0),COLORCCCC00;
STICKLINE(青色观望,C,O,0.5,0),COLOREEEE00;
JB:=(C-O);
STICKLINE(急速超跌,O,C-JB/2,2.8,0),COLOR555555;
STICKLINE(急速超跌,O,C-JB/2,2,0),COLOR888888;
STICKLINE(急速超跌,O,C-JB/2,1.5,0),COLORAAAAAA;
STICKLINE(急速超跌,O,C-JB/2,1,0),COLORCCCCCC;
STICKLINE(急速超跌,O,C-JB/2,0.5,0),COLOREEEEEE;
STICKLINE(短买,O,O+JB/3,2.8,0),COLOR335555;
STICKLINE(短买,O,O+JB/3,2,0),COLOR338888;
STICKLINE(短买,O,O+JB/3,1.5,0),COLOR33AAAA;
STICKLINE(短买,O,O+JB/3,1,0),COLOR33CCCC;
STICKLINE(短买,O,O+JB/3,0,0),COLOR33EEEE;
DRAWTEXT(短买,REF(C,1),'←短买'),COLOR33FFCC;
STICKLINE(品红离场,O,O+JB/3,2.8,0),COLOR550055;
STICKLINE(品红离场,O,O+JB/3,2,0),COLOR880088;
STICKLINE(品红离场,O,O+JB/3,1.5,0),COLORAA00AA;
STICKLINE(品红离场,O,O+JB/3,1,0),COLORCC00CC;
STICKLINE(品红离场,O,O+JB/3,0.5,0),COLOREE00EE;
DRAWTEXT(品红离场,REF(C,1)+0.1,'←离场'),COLORFF99FF;
{波段神器副图指标,无未来函数}
TOP1:=REF(CLOSE,1);
TOP2:=SMA(MAX(CLOSE-TOP1,0),7,1)/SMA(ABS(CLOSE-TOP1),7,1)*100,COLORYELLOW;
分批买:IF(TOP2<24,40,77),COLORLIMAGENTA;
分批卖:IF(TOP2>77,60,24),COLORFFFF50;
TOP2UP:STICKLINE(FILTER(REF(TOP2,1)<24 AND TOP2>REF(TOP2,1),5),24,40,1,0),COLORRED;
TOP2DOWN:STICKLINE(FILTER(REF(TOP2,1)>77 AND TOP2<REF(TOP2,1),5),60,77,1,0),COLORGREEN;
DRAWTEXT(FILTER(REF(TOP2,1)<24 AND TOP2>REF(TOP2,1),4),45 ,'买' ),COLORYELLOW;
DRAWTEXT(FILTER(REF(TOP2,1)>77 AND TOP2<REF(TOP2,1),4),55 ,'卖' ),COLORGREEN;
DRAWICON(FILTER(REF(TOP2,1)<24 AND TOP2>REF(TOP2,1),4),LOW+7,9);
DRAWICON(FILTER(REF(TOP2,1)>77 AND TOP2<REF(TOP2,1),4),70,15);
77,COLORGREEN LINETHICK1;
24,COLORRED LINETHICK1;
{波段神器选股指标,无未来函数}
TOP1:=REF(CLOSE,1);
TOP2:=SMA(MAX(CLOSE-TOP1,0),7,1)/SMA(ABS(CLOSE-TOP1),7,1)*100,COLORYELLOW;
XG:FILTER(REF(TOP2,1)<24 AND TOP2>REF(TOP2,1),4);
二、指标简介
通达信【波段神器】主副图/选股 抄底逃顶高胜率操盘组合!指标源码
1、通达信主图+副图+选股指标,波段类,无未来函数,手机、电脑通用。
2、主图与副图结合进行波段操作。
3、副图的“买”字做了个选股指标。
三、指标图示