大盘抄底逃顶:=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;{选股公式-选股指标www.gs6699.com}
CCI:EMA((大盘抄底逃顶-MA(大盘抄底逃顶,84.0270012))/(0.015*AVEDEV(大盘抄底逃顶,84.0270012)),2.0332),COLORWHITE,LINETHICK2;
STICKLINE(CCI<-100,CCI,-100,2,0),COLORMAGENTA;
STICKLINE(C>0,100,101,2,0),COLORRED,LINETHICK3;
STICKLINE(C>0,-100,-101,2,0),COLORYELLOW,LINETHICK2;