N:=6;M1:=3;M2:=3;A:=10;
RSV:((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)))*(100),CoLorFFFFFF;
WMS:100-((HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)))*(100),CoLor008000;
K:SMA(RSV,M1,1),Linethick2,CoLor00FFFF;
D:SMA(K,M2,1),Linethick1,CoLorFFFFFF;
买:(zig(3,A)>REF(ZIG(3,A),1)) AND (REF(ZIG(3,A),1)
卖:(ZIG(3,A)REF(ZIG(3,A),2)),CoLor33FF33;
DRAWTEXT((卖=1),K,'卖'),CoLor33FF33;
DRAWTEXT((买=1),K,'买'),CoLor0000FF;