如何在使用 MTF 时获取图表的分辨率
timeframe.* 变量的值将表示脚本当前运行的分辨率,该分辨率由脚本输入中 Timeframe 字段的值确定,无论图表的分辨率如何。
既然图表的分辨率与脚本分辨率不同,那么如何获取图表的分辨率呢?或者如何知道它们是否不同?
With the support of multi-timeframe (MTF) functionality:
the value of timeframe.* variables will represent the resolution the script is currently running on as determined by the value of the Timeframe field in the script's Inputs, regardless of the chart's resolution.
So how to get the chart's resolution now that it's different from the script resolution? Or how to know whether they are different?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
timeframe.period
返回图表的分辨率。timeframe.period
returns your chart's resolution.