以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  求助·空单怎么不开···  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=29431)

--  作者:jetzhu
--  发布时间:2012/9/24 15:06:29
--  求助·空单怎么不开···

variable:a=0;
variable:b=0;
if date=b+1 then sell(1,100%,market);

if a2 then  begin
buyshort(1,1,market);
b:=date;
end


if date=a+1 then sell(1,100%,market);
if a1 then begin
buy(1,1,market);
a:=date;
end


--  作者:jetzhu
--  发布时间:2012/9/24 15:17:56
--  
搞错,空单不是不开,是不平仓··
--  作者:jinzhe
--  发布时间:2012/9/24 15:19:05
--  
你写了两个sell,没写sellshort