M:=3;
通达信:=(C+O+L+H)/4;
主力资金流出:=REF(CLOSE,通达信);{股票公式-股票指标www.gs6699.com}
指标:=SMA(MAX(CLOSE-主力资金流出,0),2,1)/SMA(ABS(CLOSE-主力资金流出),2,1)*100;
ecccs1:=指标>REF(指标,1) AND 指标>89;
ecccs2:=(HIGH+LOW+CLOSE)/3;
CCI:=(ecccs2-MA(ecccs2,14))/(0.015*AVEDEV(ecccs2,14));
ecccs3:=EMA(EMA(EMA(CCI,2),2),2);
ecccs4:=ecccs3>100;
T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;
ecccs5:=(T/REF(T,1)-1)*1000;
ecccs6:=MAX(MAX(MAX(ecccs5*1,3),3),3);
ecccs7:=MA(MA(MA(ecccs5/2,M),M),M);
X:=ecccs6-ecccs7;
ecccs8:=X*3;
ecccs9:=REF(ecccs8,1)<0;
ecccs91:=ecccs8>3 AND ecccs9;
ecccs93:=ecccs1 AND ecccs4 AND ecccs91;STICKLINE(ecccs93,50,150,2,0),COLORGREEN;
DRAWTEXT(ecccs93,120,''),COLORBLUE;