N:=14;M:=100;
TYP:EMA((H+L+ 2*C)/4,4),COLOR0598FF,LINETHICK2;
cci买:EMA(MA(TYP,N)-0.015*M*AVEDEV(TYP,N),2),COLOR0080FF;
CCI卖:EMA(MA(TYP,N)+0.015*M*AVEDEV(TYP,N),2),COLOR00FF80;
{ _通达信股票指标公式}
DRAWBAND(TYP,RGB(100,0,100),CCI卖,RGB(0,100,0));
DRAWBAND(CCI买,RGB(0,0,200),CCI卖,RGB(0,0,200));
TYP,COLOR0598FF,LINETHICK2;
EMA(MA(TYP,N)-0.015*M*AVEDEV(TYP,N),2),COLOR00FF00;
EMA(MA(TYP,N)+0.015*M*AVEDEV(TYP,N),2),COLOR0000FF;
{k线}
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.0,0),COLORRED;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0.0,0),COLORCYAN;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)