S:=1;
LL:=REF(L,1);
HH:=REF(H,1);
XSQK:=L>HH;
XQK:=H<LL;
{(S=1&&XSQK)||(S=2&&XQK)AND TIME<=0935;}
DIF:=MA(CLOSE,N1)-MA(CLOSE,N2);
DIFMA:=MA(DIF,M);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));
{STICKLINE(CCI<0,0,CCI,1,0),COLORWHITE;}
{STICKLINE(CCI>=0,0,CCI,1,0),COLORYELLOW;}
{STICKLINE(CCI>REF(CCI,1) AND CCI<0 AND CCI>-100,0,CCI,9,0),COLORGREEN;}
STICKLINE(CCI>REF(CCI,1) AND (S=1&&XSQK)||(S=2&&XQK)AND TIME<=0935 AND CCI>300,9,CCI,1,0),COLORYELLOW,LINETHICK5;
趋势线:=EXPMA(CCI,5),COLORCYAN,LINETHICK3;