1、用專業版;
2、或者試試這樣;
//交易時間區間(金字塔時區)
p1:=time>010000 and time<=185500;
p2:=if(islastbar,dynainfo(207),time);
p3:=time0-timetot0(p2);
//提前下單量(秒)
xd:=3;
//滑點(舉例:2跳)
hd:=2*mindiff
......
//10:15 平倉
if time>141430 and p3<=xd then begin
sell(holding>0,0,limitr,c-hd);
sellshort(holding<0,0,limitr,c+hd);
end
//11:30 平倉
if time>152930 and p3<=xd then begin
sell(holding>0,0,limitr,c-hd);
sellshort(holding<0,0,limitr,c+hd);
end
//15:00 平倉
if time>185930 and p3<=xd then begin
sell(holding>0,0,limitr,c-hd);
sellshort(holding<0,0,limitr,c+hd);
end
http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=9439
第八個