Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
使用全局变来实现
variable:n=0;
if 开多条件 and holding=0 and n<2 then begin
buy(1,1,market);
N:=n+1;
end
if 开空条件 and holding=0 and n<2 then begin
buyshort(1,1,market);
最后在程序结尾处加一句重置全局变量的代码即可:
if time=closetime(0) then n:=0;