aa=(high + low + close) / 3;
cci=(aa - ma(aa,11)) / (0.015 * avgDev(aa,11));
draw(cci,color="#0000ff");
ci=ema(cci,5);
draw(ci,color="yellow");
界=100;
draw(界,color="white");
界0=0;
draw(界0,color="white");
界1=-100;
draw(界1,color="white");
drawIf(cci > refBefore(cci,1),cci,color="green");
drawIf(refBefore(cci,1) > cci,cci,color="#00ff00");
drawIf(cci < ci,cci,color="red");
drawText(isCrossUp(cci,ci),界1,"买",color="#00ffff");