N:=5;
QJ0:=(HIGH+LOW+CLOSE)/3;
QJ1:=IF(HIGH=LOW,1,HIGH-maX(OPEN,CLOSE));
QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0);
QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));
QJ5:=vol/(IF(HIGH=LOW,4,HIGH-LOW));
QJ6:="macd.DIF">"MacD.DEA" AND "MACD.DEA"<0;
QJ7:="kdj.K">"kdJ.D" AND "KDJ.D"<30;
特大:=QJ4*QJ5;
大单:=QJ3*QJ5;
中单:=QJ1*QJ5;
小单:=QJ2*QJ5;
W1:=SUM(大单,N)+SUM(特大,N);
W2:=SUM(小单,N)+SUM(中单,N);
量振1:=特大>大单 AND 大单>小单;
标振1:=QJ6 AND QJ7;
A:=W1-W2;
周趋势:=MA(A,5);
平滑值:=EMA(周趋势,5);
振:标振1 AND 量振1 AND 周趋势>平滑值;