I would like my indicator to exhibit different behavior based on the resolution of the chart to which it will be applied. Is there some function or variable which will give me the chart's resolution? I am familiar with the input.timeframe for allowing a user to select an indicator's timeframe different to the chart, but that is not relevant here.
//I want to do something like:
if Chart.Resolution == 1
//do some stuff
else if Chart.Resolution == 1D
//do some other stuff
I have tried using possible variable names like resolution, Resolution, chart.resolution, Chart.Resolution. I have checked the Pine Script v5 reference manual and found no variables or functions which will accomplish this for me.