Var1:=CLOSE<=OPEN;
Var2:=CLOSE>OPEN;
Var3:=DMA(EMA(CLOSE,12),SUM(vol,5)/3/CAPITAL);
Var4:=(CLOSE-Var3)/Var3*100;
Var5:=REF(Var4,1)<-32 AND Var4>REF(Var4,1) AND REF(Var4,1)2.5 AND REF(Var4,2)-REF(Var4,1)>1;
{ _飞狐股票指标公式}
Var6:=Var2 AND REF(Var1,1) AND REF(Var1,2) AND REF(Var1,3) AND REF(Var1,4) AND REF(Var1,5) AND REF(Var2,6) AND HIGH2 AND (REF(HIGH,1)-REF(CLOSE,2))/REF(CLOSE,2)<0.05 AND (REF(HIGH,4)-REF(CLOSE,5))/REF(CLOSE,5)<0.05 AND (REF(HIGH,2)-REF(CLOSE,3))/REF(CLOSE,3)<0.05 AND (REF(HIGH,3)-REF(CLOSE,4))/REF(CLOSE,4)<0.05 AND COUNT(INDEXC>INDEXO,6)>1;
Var5 OR Var6;