N:=9;M1:=3;M2:=3;M3:=3;
Var1:="YHD2-1.A#WEEK";
Var2:="YHD2-1.B#WEEK";
Var3:="YHD2-1.A#DAY";
Var4:="YHD2-1.B#DAY";
短线买: CROSS(Var3,Var4) AND Var3<30;
Var2<40;
短线卖: CROSS(Var4,Var3) AND Var3>60;
周叉买: CROSS(Var1,Var2) AND Var1<55;
周叉卖: CROSS(Var2,Var1) AND Var2>80;
STICKLINE(短线买,0,35,6,0);
STICKLINE(短线卖,0,70,5,0);
STICKLINE(周叉买,0,45,6,0);
STICKLINE(周叉卖,0,85,5,0);
Var5:=(CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100;
Var6:=REVERSE(Var5);
Var7:=SMA(Var5,m1,1);
K: SMA(Var7,m2,1);
D: SMA(K,m3,1);
Var8:=SMA(Var6,m3,1);
W: SMA(Var8,m3,1);
R: SMA(W,m3,1);