Rss & SiteMap

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

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

标题:哪里写错了?编译通不过。

1楼
qq代人发帖 发表于:2014/4/8 14:09:05
 请教
if cd1 then begin
   平空1:sellshort(pk,2,thisclose);
   d1:=1;
   else begin
   平空1:sellshort(pk,1,thisclose);
     d1:=1;
   end
2楼
jinzhe 发表于:2014/4/8 14:10:19

第二个平空1改成平空2

3楼
superspider 发表于:2014/4/8 14:13:34
这个是嵌套在一个if语句里的 但是提示是else前没有if
4楼
superspider 发表于:2014/4/8 14:16:13
if d1=0 and pk then begin
   if cd1 then begin
   平空1:sellshort(pk,2,thisclose);
   d1:=1;
   else begin
   平空1:sellshort(pk,1,thisclose);
   d1:=1;
   end
end;

提示是else 前缺少if
5楼
jinzhe 发表于:2014/4/8 14:38:25
else前面少个end
共5 条记录, 每页显示 10 条, 页签: [1]


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