以下是通达信K线抛物线主图指标源码

EMA5:EMA(C,5),COLORFF00FF,LINETHICK1;
 EMA10:EMA(C,10),COLOR00FFFF,LINETHICK1;
 A:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
 B:IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORCYAN;
 AA:= CLOSE>SAR(4,2,20);
 BB:= CLOSE<SAR(4,2,20);
买入:DRAWICON(CROSS(AA,BB),L-0.1,1);
卖出:DRAWICON(CROSS(BB,AA),H+0.1,2);
 STICKLINE(AA,C,O,3,0),COLOR000099;
 STICKLINE(AA,H,L,0.5,0),COLOR000099;
 STICKLINE(BB,C,O,3,0),COLORFF0099;
 STICKLINE(BB,H,L,0.5,0),COLOR660099;
 STICKLINE(AA,CLOSE,OPEN,3.0,0),COLOR9900CC;
 STICKLINE(AA,CLOSE,OPEN,2.5,0),COLORFF00CC;
 STICKLINE(AA,CLOSE,OPEN,1.9,0),COLORFF00FF;
 STICKLINE(AA,CLOSE,OPEN,1.0,0),COLORFF33FF;
 STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORFF66FF;
 STICKLINE(AA,CLOSE,OPEN,0.2,0),COLORFF99FF;
 STICKLINE(BB,CLOSE,OPEN,3,0),COLOR006633;
 STICKLINE(BB,CLOSE,OPEN,2.5,0),COLOR339933;
 STICKLINE(BB,CLOSE,OPEN,1.9,0),COLOR669933;
 STICKLINE(BB,CLOSE,OPEN,1.5,0),COLOR33CC33;
 STICKLINE(BB,CLOSE,OPEN,1.0,0),COLOR66CC33;
 STICKLINE(BB,CLOSE,OPEN,0.2,0),COLORCCFF33;
 STICKLINE(买入,O,(C-O)/2+O,3,0),COLOR335555;
 STICKLINE(买入,O,(C-O)/2+O,2.2,0),COLOR338888;
 STICKLINE(买入,O,(C-O)/2+O,1.5,0),COLOR33AAAA;
 STICKLINE(买入,O,(C-O)/2+O,1,0),COLOR33CCCC;
 STICKLINE(买入,O,(C-O)/2+O,0,0),COLOR33EEEE;
 STICKLINE(卖出,O,(C-O)/2+O,3,0),COLOR550055;
 STICKLINE(卖出,O,(C-O)/2+O,2.2,0),COLOR880088;
 STICKLINE(卖出,O,(C-O)/2+O,1.5,0),COLORAA00AA;
 STICKLINE(卖出,O,(C-O)/2+O,1,0),COLORCC00CC;
 STICKLINE(卖出,O,(C-O)/2+O,0.5,0),COLOREE00EE;

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