Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
多头平仓后,如果满足条件B才反手做空,是这样写吗
If 条件A then begin
sell( ),Orderqueue;
IF 条件B then buyshort( ),Orderqueue;
END
variable:n=0;
if a and holding>0 then begin
sell;
n:=1;
end
if b and holding=0 and n=1 then begin
buyshort;
n:=0;