MA30:MA(C,30);
SG:=MA30+N;
XG:=MA30-N;
C>SG,BPK;
C<XG,SPK;
AUTOFILTER;
MULTSIG(0,0,60,0);//出信号立即下单
SETALLSIGPRICETYPE(TRACING_ORDER);
MA30:MA(C,30);
SG:=MA30+N;
XG:=MA30-N;
if C>SG then
begin
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if C<XG then
begin
sell(holding>0,holding,market);
buyshort(holding=0,1,market);
end
MA30:MA(C,30);
SG:=MA30+N;
XG:=MA30-N;
C>SG,BPK,TFILTER;
C<XG,SPK,TFILTER;
[此贴子已经被作者于2018/5/4 11:58:30编辑过]