Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
平多后不能直接开多而是要有个开空动作后才能开多?
给一个大体的框架:
variable:n=0,m=0;
if 开多条件 and n=0 and 持仓判断 then begin
开多语句;
m:=0;
end
if 开空条件 and m=0 and 持仓判断 then begin
开空语句;
n:=0;
if 平多语句 and 持仓判断 then begin
平多语句;
n:=1;
if 平空语句 and 持仓判断 then begin
平空语句;
m:=1;