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