用CCI的买卖做主图买卖清晰可见主图.源码.说明
用CCI的买卖做主图买卖清晰可见.把CCI的买卖线加在主图上是买是卖一清二楚.股价超过或者低于买卖线,我们用不同的颜色区别开来.图面清爽.一看就知道你的股票现在是什么状态.【中间地带】是安全持股区.上突出是【出卖区】.下突破是【买入区】.具体买卖点一看便知.无需解释.当然是买卖区的【消失点】是最佳位置.
{CCI买卖}
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;
{N(6,200,14),M(50,200,100) ;通达信参此数填入表内}