M1:=10;
M2:=20;
N:=20;
二品:(1+M1/100)*ma(CLOSE,N),COLORYELLOW;
四品:(1-M2/100)*MA(CLOSE,N),COLORBLUE;
三品:(二品+四品)/2,COLORWHITE;
一品:8*(二品+四品)/14,COLORRED;
五品:6*(二品+四品)/14,COLORGREEN;
TM:=1200823;
涨停:IF(DATE<tm,ztprice(ref(c,1),if(codelike('688'),0.2,if(nameinclude('s'),0.05,0.1))),ztprice(ref(c,1),if(codelike('688') or="" codelike('300'),0.2,if(nameinclude('s'),0.05,0.1)))),nodraw,colorred;<br="">
跌停:IF(DATE<tm,dtprice(ref(c,1),if(codelike('688'),0.2,if(nameinclude('s'),0.05,0.1))),dtprice(ref(c,1),if(codelike('688') or="" codelike('300'),0.2,if(nameinclude('s'),0.05,0.1)))),nodraw,colorgreen;<br="">
明涨停:IF(DATE<tm,c*if(codelike('688'),1.2,if(nameinclude('s'),1.05,1.1)),c*(if(codelike('688') or="" codelike('300'),1.2,if(nameinclude('s'),1.05,1.1)))),nodraw,colorlimagenta;<br="">
明跌停:IF(DATE<tm,c*if(codelike('688'),0.8,if(nameinclude('s'),0.45,0.9)),c*(if(codelike('688') or="" codelike('300'),0.8,if(nameinclude('s'),0.45,0.9)))),nodraw,colorffff00;<br="">
ZT:=C>=涨停 AND PERIOD=5 AND H=C;
ZT1:=H>=涨停 AND PERIOD=5 AND H>C;
DT:=C<=跌停 AND PERIOD=5 AND L=C;
DT1:=L<=跌停 AND PERIOD=5 AND L<c;
{曾涨跌停打开k线颜色设置}
stICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,O,(O+C)/2,3,0),COLOR888888;
STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00;
DRAWTEXT(ZT AND DT1 AND PERIOD=5,L-0.03,'地天板'),COLORCC00CC;{从跌停到涨停}
DRAWTEXT(DT AND ZT1 AND PERIOD=5,H+0.03,'天地板'),COLOR00CC00;{从涨停到跌停};
DRAWTEXT(DT1,L-0.09,'撬板'),COLORCC00CC;{从涨停到跌停};
DRAWTEXT(ZT1,H+0.03,'炸板'),COLOR00CC00;{从涨停到跌停};
TJ:=V=HHV(V,100);
K1:=SUMBARS(TJ,1);
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;
MA120:MA(C,120),COLORMAGENTA,LINETHICK2;
涨停宝:=C>一品 AND REF(C,1)<一品 AND (C-REF(C,1))/REF(C,1)>0.09;
DRAWTEXT(涨停宝,一品,'涨停宝');
抄底宝:=(REF(C,1)<五品 AND C>五品) OR (L<五品 AND C>五品);
DRAWTEXT(抄底宝,五品,'抄底宝');
标签:1.5,涨停,STICKLINE,DRAWTEXT,通达信,源码,宝主图,DT1,ZT1 From: https://www.cnblogs.com/zhibiao/p/17991658