DrH
DrH

Reputation: 3

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.

Upvotes: 0

Views: 597

Answers (1)

vitruvius
vitruvius

Reputation: 21342

You are looking for timeframe.period

Upvotes: 1

Related Questions