N:=9;M1:=3;M2:=3;
Var1:=(CLOSE-LLV(LOW, N))/(HHV(HIGH, N)-LLV(LOW, N))*100;
Var2:=SMA(Var1, M1, 1);
Var3:=SMA(Var2, M2, 1);
Var4:=3*Var2-2*Var3;
Var5:=CLOSEREF(Var4, 1) AND REF(Var4, 1)<2;
Var6:=MA(CLOSE, 30);
Var7:=Var6>=REF(Var6, 1);
Var8:=Var5 AND Var7;
抄底:IF(Var8, 100, 0);