以下是通达信实盘之一WW0801(主图幅图预警源码贴图)
{主图}
W:=BARSLAST(DATE=1150716);
TW:=FINDHIGHBARS(H,1,W,1);
WW:=CROSS(C,REF(REF(H,TW),1)) AND CURRBARSCOUNT<CONST(TW) AND DYNAINFO(17)!=0;
DRAWLINE(CURRBARSCOUNT=CONST(TW)+1,H,ISLASTBAR,REF(H,TW),0),COLORBROWN,LINETHICK2;
DRAWICON(WW,L*0.94,18);
STICKLINE(WW,H,L,0,1),COLORYELLOW;
STICKLINE(WW,C,O,3.2,0),COLOR117777;
STICKLINE(WW,C,O,2.6,0),COLOR119999;
STICKLINE(WW,C,O,1.9,0),COLOR11BBBB;
STICKLINE(WW,C,O,1.1,0),COLOR11DDDD;
STICKLINE(WW,C,O,0.3,0),COLOR44FFFF;
{幅图}
W:=BARSLAST(DATE=1150716);
TW:=FINDHIGHBARS(H,1,W,1);
WW:=CROSS(C,REF(REF(H,TW),1)) AND CURRBARSCOUNT<CONST(TW) AND DYNAINFO(17)!=0;
STICKLINE(WW,0,7,1.3,0),COLORBROWN;
{选股及预警}
W:=BARSLAST(DATE=1150716);
TW:=FINDHIGHBARS(H,1,W,1);
WW:CROSS(C,REF(REF(H,TW),1)) AND CURRBARSCOUNT<CONST(TW) AND DYNAINFO(17)!=0;