通达信提前埋伏即将拉升的副图指标
源码
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,5))/(0.015*AVEDEV(TYP,5));
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
主力进驻:COUNT(MACD<0,10)=10,COLORRED,NODRAW;
STICKLINE(主力进驻,0,MACD*200,10,0),COLORRED;
STICKLINE(CCI<-100,CCI,-100,1,0),COLORMAGENTA;
-100;
-100,STICK,COLORYELLOW;