Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
有空头没?
没有空头
variable:n=0;
if date<>ref(date,1) then n:=0;
if 开多 and n<2 then buy;
if 平仓条件 and holding>0 then begin
sell;//假定这里平仓使用thisclose
if close-enterprice<0 then n:=n+1;
if close-enterprice>0 then n:=0;
end