{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,LINETHICK3;
周CCI:"CCI.CCI#WEEK",COLOR0080FF,LINETHICK2;
日CCI:"CCI.CCI",COLORWHITE,LINETHICK1;
{}
DRAWTEXT(ISLASTBAR,月CCI,' ←月CCI'),COLORFF0080;
DRAWTEXT(ISLASTBAR,周CCI,' ←周CCI'),COLOR0080FF;
DRAWTEXT(ISLASTBAR,日CCI,' ←日CCI'),COLORWHITE;