通达信强化股选股指标公式

X_1:=HIGH=HHV(HIGH,20);
X_2:=REF(HIGH,BArslAST(X_1));
X_3:=IF(HIGH<=REF(HIGH,1) AND REF(HIGH,1)>=REF(HIGH,2),REF(HIGH,1),REF(REF(HIGH,1),BARSLAST(HIGH<=REF(HIGH,1) AND REF(HIGH,1)>=REF(HIGH,2))));
REF(HIGH,1)<X_3 AND HIGH>X_3 AND vol>1000 AND REF(CLOSE,1)<REF(X_2,2) AND CLOSE>REF(X_2,1);