“Resolution” argument is incompatible [TradingView]

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 ‘resolution’ argument is incompatible with functions that have side effects.

The reason seems the dynamic functions, which are label and 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 .

Leave a Reply

Your email address will not be published. Required fields are marked *