通达信大盘K线副图源码
DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'0',0);
DRAWGBK(C>0,RGB(40,120,20),RGB(00,00,00),0,'0',1);
DRAWGBK(C>0,RGB(80,100,120),RGB(00,00,00),0,'0',1);
MMM:=REFDATE(HHV(INDEXH,233),DATE);
NNN:=REFDATE(LLV(INDEXL,233),DATE);
DPX:=EMA(INDEXC,21);
JJ:=(INDEXO+INDEXH+INDEXC)/3;
STICKLINE(JJ>=DPX,MMM,NNN,5,1),COLOR000066;
大盘线:DPX,COLOR992299;
STICKLINE(INDEXC>=INDEXO,INDEXH,INDEXL,0,1),COLOR0000FF;
STICKLINE(INDEXC>INDEXO,INDEXC,INDEXO,2,0),COLOR000066;
STICKLINE(INDEXC>INDEXO,INDEXC,INDEXO,1.5,0),COLOR000088;
STICKLINE(INDEXC>INDEXO,INDEXC,INDEXO,1,0),COLOR0000AA;
STICKLINE(INDEXC>INDEXO,INDEXC,INDEXO,0,0),COLOR0000CC;
STICKLINE(INDEXC<INDEXO,INDEXH,INDEXL,0,1),COLORCYAN;
STICKLINE(INDEXO>=INDEXC,INDEXC,INDEXO,2,0),COLORFF8800;
STICKLINE(INDEXO>=INDEXC,INDEXC,INDEXO,1.5,0),COLORFFAA00;
STICKLINE(INDEXO>=INDEXC,INDEXC,INDEXO,1,0),COLORFFCC00;
STICKLINE(INDEXO>=INDEXC,INDEXC,INDEXO,0,0),COLORFFEE00;
DPDY:=INDEXC/REF(INDEXC,1)>1.02;
DPBD:=INDEXC/REF(INDEXC,1)<0.98;
STICKLINE(DPDY,INDEXC,INDEXO,2,0),COLOR00FFFF;
STICKLINE(DPBD,INDEXC,INDEXO,2,0),COLOR00FF00;