通达信选强势股指标公式

VAR2:=(HIGH - LOW);
 VAR3:=ABS((OPEN - CLOSE));
 VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
 VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
 VAR6:=((VAR3 / VAR2) * VOL);
 VAR7:=((VAR4 / VAR2) * VOL);
 VAR8:=((VAR5 / VAR2) * VOL);
 VARB:=(MA(CLOSE,1) >= MA(CLOSE,3)) AND (MA(CLOSE,3) >= MA(CLOSE,5));
 VARC:=(MA(CLOSE,1) <= MA(CLOSE,3)) AND (MA(CLOSE,3) <= MA(CLOSE,5));
 MMM:=MA(VOL,3);
 ((((VAR6 >= MMM*1.5) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE >= OPEN)) OR ((VOL >= MMM*1.5) AND VARB);