VARIABLE:aaa=0;
A:=CALLSTOCK('y00',VTclose,22,1);
B:=CALLSTOCK('m00',VTclose,22,1);
价差:A-B;
if time=133000 then aaa:=价差;
if aaa-价差>10 then buy();
以开盘的9:30的数值为固定值需要你自己根据当前使用的周期进行计算指定计算
限制当日开仓数量参考这个 连接的2.2
http://www.weistock.com/bbs/dv_rss.asp?s=xhtml&boardid=16&id=67931&page=1