N:=12;
AA:=(CLOSE+LOW+HIGH)/3;
BB:=SUM(((AA-REF(LOW,1))-(HIGH-AA))*vol/100000/(HIGH-LOW),0);
CC:=EMA(BB,1);
DD :=REF(CLOSE,1);
VAR1:=SMA(MAX(CLOSE-DD,0),12,1)/SMA(Abs(CLOSE-DD),12,1)*100;
VAR2:=SMA(MAX(CLOSE-DD,0),18,1)/SMA(ABS(CLOSE-DD),18,1)*100;
VAR3:=MA(3*VAR1-2*SMA(MAX(CLOSE-DD,0),16,1)/SMA(ABS(CLOSE-DD),16,1)*100,3);
VAR4:=EMA(VAR3,8);
VAR5:=MA(3*VAR2-2*SMA(MAX(CLOSE-DD,0),N,1)/SMA(ABS(CLOSE-DD),N,1)*100,5);
VAR6:=CC COLORRED NODRAW;
VAR7:=MA(CC,12) NODRAW;
VAR8:=MA(CC,26);
DRAWICON(crOSS(VAR3,VAR4),VAR4,11);
STICKLINE(VAR3>VAR4,VAR3,VAR4,4,0)COLORYELLOW;
STICKLINE(VAR3
STICKLINE(VAR3
短卖:VAR4 COLORYELLOW NODRAW;
乖离线:VAR5 POINTDOT COLORWHITE;