//kdj一分鐘
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;// www.kzuj.com.cn
?
t1:=time>=092900 and time<=145000;
t2:=time>151000;
long:=count(k>87,3)>=2;;
longend:=cross(12,k) or (enterprice-c>=20);
?
if holding>0 then sell(longend,1,thisclose);
?
if holding=0 and t1 then buy(long,1,thisclose);
?
?
if holding>0 and t2 then sell(1,1,thisclose);
?