dtpl:stkindi('','jxqs3.dp',0,3,-1);
ktpl:stkindi('','jxqs3.kp',0,3,-1);
jjc:stkindi('','jxqs3.jc',0,17,-1);
ssc:stkindi('','jxqs3.sc',0,17,-1);
VARIABLE:n1:=0;
VARIABLE:n2:=0;
if dtpl then n:=1;
if n=1 THEN
buy(jjc,1,market);
if ssc then
sell(holding>0,1,MARKETR);
if ktpl then n2:=1;
if n2:=1 then
buyshort(ssc,1,market);
if jjc then
sellshort(holding<0,1,market);