{cci日周月}{改编 BY SHUHONG}
{}
{bsQJ指标}{买卖区间}
买线:=Ema(C,2);
卖线:=ema(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,0,10,2,1),COLOR2040FF;
STICKLINE(买线<卖线,0,-10,2,1),COLOR6CE424;
{}
月CCI:"CCI.CCI#MONTH",COLORFF0080,LINETHICK4;
周CCI:"CCI.CCI#WEEK",COLOR0080FF,LINETHICK3;
日CCI:"CCI.CCI",COLORRED,LINETHICK1;
{}
DRAWTEXT(ISLASTBAR,月CCI,' ←月CCI'),COLORFF0080;
DRAWTEXT(ISLASTBAR,周CCI,' ←周CCI'),COLOR0080FF;
DRAWTEXT(ISLASTBAR,日CCI,' ←日CCI'),COLORRED;
{CCI月}
牛熊线:100,COLORCYAN;
牛股线:200,COLORLIMAGENTA;
JCD:=crOSS(月CCI,牛熊线);
交叉点: IF(CROSS(月CCI,牛熊线),100,0),COLORWHITE,NODRAW;
DRAWTEXT(JCD,110,' 交叉点 '),COLORWHITE;
STICKLINE(JCD,75,125,3,0),COLORWHITE;