I changed the ‘resolution’ setting and now my indicator displays ‘n/a’

Some TradingView indicators have a ‘resolution’ setting, which enables MTF functionality. This setting allows you to calculate the indicator on a timeframe that is different from the one you currently have on the chart. You can read more about MTF functionality in our Help Center.

Let’s start by opening a 1m chart and add in a Moving Average (MA) indicator that calculates based on the data from the 5m timeframe. Here’s how it’ll look:

As you can see in the top right corner, the MA indicator displays n/a instead of a numerical value. But why does this happen?

When the indicator requests the data from the 5m timeframe, it gets one MA value for each of the five minutes. On the chart, one bar is equal to 1m of time, so we have five times as much data for the chart itself than for the indicator. Effectively, for each of the five bars, we can only have one MA value.

In order to draw the indicator in this case, we attach the MA values to every fifth bar and then connect them with a straight line. In the end, we get a relatively smooth MA where every fifth bar has an associated MA value, whereas all bars in between don't - they display n/a instead.

If you change the style of the indicator to Line With Breaks in its settings, you’ll see where the actual values are located. With this style, the values will no longer be connected by lines.

On real-time data, the indicator will be drawn only up to the last available closed bar of the indicator’s timeframe. In our example, the MA values will lag 1-4 bars behind the chart, because the 5m bar that the indicator is based on has not yet closed. A new value will appear as soon as the 5m bar closes, so it will happen once every five minutes.

开启图表
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 Referred friends Coins 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 在线聊天 退出