Few days ago, TradingView introduced the new functionality – the “resolution” parameter for pinescript studies. However, in some cases, you might get the error message when building the scripts:
The reason seems the dynamic functions, which are
line functions. As they are dynamic by nature, the “resolution” parameter does not seem to work with those functions. At this moment, unfortunately, it can not be used with the aforementioned functions and if we want to use
label/line, then we have to use advanced pinescript methods, i.e. use
security functions in order to achieve our goals .