ZX:=100*EMA(EMA(MTM,N2),N2)/EMA(EMA(ABS(MTM),N2),N2);
CX:=100*EMA(EMA(MTM,N3),N3)/EMA(EMA(ABS(MTM),N3),N3);
DXGD:=LLV(DX,2)=LLV(DX,5) AND CROSS(DX,MA(DX,2));
ZXGD:=LLV(ZX,2)=LLV(ZX,5) AND CROSS(ZX,MA(ZX,2)) AND DX
中买:IF(ZXGD AND BETWEEN(DX,0,50) AND BETWEEN(CX,0,50),1,0),COLOR00FFFF,POINTDOT;
DTPL:=DX ZX AND ZX CX AND CX
QSXS:=DX REF(DX,1) AND ZX REF(ZX,1);
TSJC:=CROSS(DX,CX) AND CROSS(ZX,CX);
优选:IF(CROSS(DTPL,0.8) AND (TSJC OR COUNT(QSXS,3)=3) AND CX 40,1,0),COLOR0000FF,POINTDOT;
中卖:IF(CROSS(CX,ZX) AND DX ZX,1,0),colorff9900;
买:IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX 0,2) AND CROSS(DX,MA(DX,2)),1,0),COLORRED;
卖:IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX 50,2) AND CROSS(MA(DX,2),DX),1,0),COLOR00FF00;
STICKLINE(DX 0,0,DX,3,0),COLOR00FF00;
STICKLINE(ZX 0,0,ZX,3,0),COLOR00FFFF;
STICKLINE(CX 0,0,CX,3,0),COLORFF00FF;
DRAWTEXT(中买,low-0.03,'★'),COLOR00FFFF,ALIGN1;
DRAWTEXT(中卖,high*1.025,'●'),COLORFF9900,ALIGN1;
DRAWTEXT(filter(买=1,5),low-0.03,'买'),COLORRED,ALIGN1;
DRAWTEXT(filter(卖=1,5),high*1.025,'卖'),COLOR00FF00,ALIGN1;
DRAWICON(优选,low-0.03,1),ALIGN1;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:SMA(RSV,3,1),COLORFFFFFF,PRECIS0;
D:SMA(K,3,1),COLOR00FFFF,PRECIS0;
J:=3*K-2*D;
超跌:IF(J 0,10,0),COLORFFFF00,PRECIS0; BDDD:=LLV(J,2)=LLV(J,8);
重启:IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J 20,30,0),COLORwhite,PRECIS0;
{ N1 6 1 1001
N2 12 1 1001
N3 26 1 1001}