N8:ZZ+N;
NS:ZZ-N;
N9:KK-N;
NX:KK+N;
MA30:MA(C,30);
SG:=MA30+N;
XG:=MA30-N;
C>SG&&C>N8,BK;
C<XG,SP;
C<NS,SP;
C<XG&&C<N9,SK;
C>SG,BP;
C>NX,BP;
AUTOFILTER;
MULTSIG(0,0,60,0);//出信号立即下单
SETALLSIGPRICETYPE(TRACING_ORDER);
N8:ZZ+N;
NS:ZZ-N;
N9:KK-N;
NX:KK+N;
MA30:MA(C,30);
SG:=MA30+N;
XG:=MA30-N;
if C>SG&&C>N8 then buy(holding=0,1,market);
if C<XG then sell(holding>0,holding,market);
if C<NS then sell(holding>0,holding,market);
if C<XG&&C<N9 then buyshort(holding=0,1,market);
if C>SG then sellshort(holding<0,holding,market);
if C>NX then sellshort(holding<0,holding,market);
改下下单语句就可以了。