以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 哪里写错了?编译通不过。 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=63616) |
-- 作者: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 |
-- 作者:jinzhe -- 发布时间:2014/4/8 14:10:19 -- 第二个平空1改成平空2 |
-- 作者:superspider -- 发布时间:2014/4/8 14:13:34 -- 回复:(jinzhe)第二个平空1改成平空2 这个是嵌套在一个if语句里的 但是提示是else前没有if |
-- 作者:superspider -- 发布时间:2014/4/8 14:16:13 -- 回复:(jinzhe)第二个平空1改成平空2 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 |
-- 作者:jinzhe -- 发布时间:2014/4/8 14:38:25 -- else前面少个end |