N:=12;
FU:=(CLOSE+LOW+HIGH)/3;
JIAN:=SUM(((FU-REF(LOW,1))-(HIGH-FU))*vol/100000/(HIGH-LOW),0);
XIao:=EMA(JIAN,1);
LIN :=REF(CLOSE,1);
福:=SMA(MAX(CLOSE-LIN,0),12,1)/SMA(Abs(CLOSE-LIN),12,1)*100;
建:=SMA(MAX(CLOSE-LIN,0),18,1)/SMA(ABS(CLOSE-LIN),18,1)*100;
小:=MA(3*福-2*SMA(MAX(CLOSE-LIN,0),16,1)/SMA(ABS(CLOSE-LIN),16,1)*100,3);
林:=EMA(小,8);
{ _通达信股票指标公式}
主:=MA(3*建-2*SMA(MAX(CLOSE-LIN,0),N,1)/SMA(ABS(CLOSE-LIN),N,1)*100,5);
力:=XIAO COLORRED NODRAW;
指:=MA(XIAO,12) NODRAW;
标:=MA(XIAO,26);
DRAWICON(crOSS(小,林),林,11);
STICKLINE(小>林,小,林,4,0)COLORYELLOW;
STICKLINE(小<林,小,林,4,0)COLORBLUE;
STICKLINE(小>林,小,林,4,1)COLORRED;
STICKLINE(小<林,小,林,4,1)COLORGREEN;
短买:小 COLORRED NODRAW;
短卖:林 COLORYELLOW NODRAW;
乖离线:主 POINTDOT COLORWHITE;