Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:if语句请教 请老帮师我看下错在哪 老提示缺少end

1楼
arutema 发表于:2016/5/16 22:20:13
BUY(cd2 and HOLDING=0,1,THISCLOSE); 

 if a1 then begin sell(holding>=0,HOLDING,THISCLOSE);
  if cd1.1 then begin sell(holding>=0,HOLDING,THISCLOSE); 
  end 
 BUYSHORT(cd1 and HOLDING=0,1,THISCLOSE);
 if a2 then begin SELLSHORT(holding<=0,HOLDING,Thisclose);
 if cd2.1 then begin sellshort(holding<=0,HOLDING,THISCLOSE);
  end

以上老提示缺少end  不知错在那  请老师指点
2楼
jinzhe 发表于:2016/5/17 8:57:44
上面缺begin
3楼
arutema 发表于:2016/5/17 17:50:07
怎么写啊 写在那个位置

4楼
jinzhe 发表于:2016/5/18 8:46:58
BUY(cd2 and HOLDING=0,1,THISCLOSE); 

 if a1 then begin sell(holding>=0,HOLDING,THISCLOSE);
  if cd1.1 then begin sell(holding>=0,HOLDING,THISCLOSE); 
  end 
end
 BUYSHORT(cd1 and HOLDING=0,1,THISCLOSE);
 if a2 then begin SELLSHORT(holding<=0,HOLDING,Thisclose);
 if cd2.1 then begin sellshort(holding<=0,HOLDING,THISCLOSE);
  end
end
5楼
arutema 发表于:2016/5/18 19:30:08
谢谢老师

共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03516 s, 3 queries.