Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
variable:bj=0;
if 开仓条件 and holding=0 then begin
buy(1,1,market);
bj:=date;
end
if 平仓条件 and holding>0 and date>bj then sell(1,0,market);
类似这样的,用全局变量bj来记录开仓的日期