N:=13;P:=4;RN:=27;
VVAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
VVAR2:=( MA((CLOSE-VVAR1)/VVAR1,1));
VVAR3:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
VVAR4:=SMA(VVAR3,4,1);
MMA:=EMA(VVAR2,12)*0.7;
MMB:=EMA(VVAR2,3);
快到底:=IF(LLV(MMB-MMA,12)>0,0,-20),LINETHICK2,COLORGREEN;
底初选股:=IF( CROSS(0, LLV(MMB-MMA,12)),10,0),LINETHICK0;
K:=CEILING(C/10);
DIFF:=( EMA(CLOSE,12) – EMA(CLOSE,26))/K*100+50;
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA)+50;
LC:=REF(CLOSE,1);
RA1:=REF(RSI,N)=HHV(RSI,N*2+1); RA2:=REF(RSI,N)=LLV(RSI,N*2+1);
RB1:=FILTER(RA1,N); RB2:=FILTER(RA2,N);
RC1:=BACKSET(RB1,N+1); RC2:=BACKSET(RB2,N+1);
RD1:=FILTER(RC1,N); RD2:=FILTER(RC2,N);
GD1:=BARSLAST(RD1); DD1