以下是通达信大盘K线副图源码

通达信大盘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;
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。