N:=10;
Var1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=Var1*1.05;
Var5:=MA(CLOSE,5);
Var6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var7:=SMA(Var6,5,1);
Var8:=VOL>REF(VOL,1);
Var9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);
VarA:=0;
买入: VarA;
卖出: CROSS(Var2,Var4) AND Var3>60 AND Var7<Var9+N;