'How to use chart's default timeframe in pine script?
I wonder how we can use a default timeframe based on the chart's timeframe selected by the user. So, instead of using input.timeframe('', title='High/Low Lines'), the script works base on the current chart's timeframe? Thank you.
Solution 1:[1]
You are looking for timeframe.period
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | vitruvius |
