1, 滑点现象这个本身不可控。可以使用限价,尽量减少滑点,但会牺牲成交速度。
2,金字塔提供大单切分时的滑点处理,可以参考下。
参考链接如下:http://www.weistock.com/bbs/dispbbs.asp?BoardID=10&ID=49056
类似这样例子处理就行
ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin
if holding>0 and ma5<ma10 then sell(1,1,thisclose);
if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
if holding=0 and ma5>ma10 then buy(1,1,thisclose);
if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);
end