TYP:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;
CCI:EMA((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2.0332),COLORWHITE;
STICKLINE(CCI>100,CCI,100,1,0),COLORMAGENTA;
STICKLINE(CCI<-150,CCI,-150,1,0),COLORYELLOW;
STICKLINE(C>0,100,101,1,0),COLORRED;
STICKLINE(C>0,-150,-151,1,0),COLORGREEN;