Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
如果今天MA5>MA10,昨天MA5<MA10,那么今天算第一天,明天算第二天,在第6天的时候买入,以下编写为什么总是不对?
aa:=ma5>ma10 and ref(ma5,1)<ref(ma10,1);
if aa then begin
trend:=1;
daybars:=1;
end
if ref(trend,1)=1 then
daybars:=daybars+1;
if daybars=6 then
buy…