欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → [求助]编译时出现变量名重复的问题

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有2562人关注过本帖平板打印复制链接

主题:[求助]编译时出现变量名重复的问题

帅哥哟,离线,有人找我吗?
wilsonax
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:47 积分:10 威望:0 精华:0 注册:2013/1/29 12:20:19
[求助]编译时出现变量名重复的问题  发帖心情 Post By:2013/7/23 23:24:01    Post IP:183.235.249.143[只看该作者]

公式里:
variable: rangeafterenter=0;

if holding>0 and enterbars=0 then begin
rangeafterenter:high;
end
if holding<0 and enterbars=0 then begin
rangeafterenter:low;
end


if holding>0 and enterbars>0 then begin
rangeafterenter:max(rangeafterenter,high);
end
if holding<0 and enterbars>0 then begin
rangeafterenter:min(rangeafterenter,low);
end

编译时总是会显示变量名rangeafterenter重复,这是什么原因呢?
但如果加上一个等号,比如rangeafterenter:=low;,就不会出现问题,但我的确想这个变量在图形中显示呢?

 回到顶部