没有平仓就开仓
开多平空条件:=CROSS(MA1,MA2);//
开空平多条件:=CROSS(MA2,MA1);//
sk:=4;
tq:=10;
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin
if 开多平空条件 then begin //
平空:SELLSHORT(holding<0 ,0,thisclose);//
开多:BUY(holding=0,sk,thisclose);//
end
if 开空平多条件 then begin
平多:SELL(holding>0,0,thisclose);
开空:BUYSHORT(holding=0,sk,thisclose);
end
end
使用的是2秒轮询 自动矫正
具体交易图片上传不了 版主回复我下 我给你发邮箱
图片可以使用IE浏览器上传,另外最好能上传一下交易日志
你短信给我的只是你的描述,我需要看下交易日志,加QQ:1971344681 发给我把