以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://222.73.7.161/bbs/index.asp)
--  公式模型编写问题提交  (http://222.73.7.161/bbs/list.asp?boardid=4)
----  编译报错:缺少end  (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=163958)

--  作者:netlife88
--  发布时间:2018/6/11 11:39:54
--  编译报错:缺少end

请问这个提示语句缺少end 哪错了

 

 

if high>h0 then h0:=high;
if low=opentime(1) and time=2 and rf then begin
if h0>=up and holding>=0 then begin
if low=benter-(bsetup-ltoday)/div then begin
if high>=benter-(bsetup-ltoday)/div then begin
sellshort(1,v1,thisclose);
buy(1,v1,thisclose);
end
end
end


--  作者:yukizzc
--  发布时间:2018/6/11 13:01:49
--  

你有4个begin,只有3个end

最后面再加个end


--  作者:FireScript
--  发布时间:2018/6/11 13:03:43
--  
 加一个end就行了,你有四个beigin在代码里面的。