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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 后台交易中holding 于tholding的区别

   

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


  共有4798人关注过本帖树形打印复制链接

主题:后台交易中holding 于tholding的区别

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


加好友 发短信
等级:新手上路 帖子:26 积分:162 威望:0 精华:0 注册:2012/3/1 8:44:27
后台交易中holding 于tholding的区别  发帖心情 Post By:2012/3/1 8:51:56    Post IP:114.250.79.24[显示全部帖子]

金字塔后台公式问题
以下公式在日内1分钟得到“开多仓”后达到的最高价"hhv_holding",用于保本操作。图表方式工作正常
variable:hhv_holding=0;
 if time=090100 then hhv_holding:=0;
 if holding<=0 then hhv_holding:=0;
 if (high>hhv_holding and holding>0) then hhv_holding:=high;
 debugout('hhv_holding_=%.0f',hhv_holding);

当在后台工作时,把“holding”用“tholding”代替后"hhv_holding"与上结果不同,仅是当前最后1分钟高点价,而非开多后的最高价
 if time=090100 then hhv_holding:=0;
 if tholding<=0 then hhv_holding:=0;
 if (high>hhv_holding and tholding>0) then hhv_holding:=high;
 debugout('hhv_holding_=%.0f',hhv_holding);
以至于无法将图表公式移植到后台。请各位高手指点是何问题,如何解决,谢谢!!


 回到顶部