Lipi Reference Lipi

Variables

interval.interval

A string representation of the chart's timeframe. The returned string's format is [<quantity>][<units>]. <quantity> is the number of units. <unit> is "s" for seconds, "D" for days, "W" for weeks, "M" for months. The variable will return: "10s" for 10 seconds, "60m" for 60 minutes, "1D" for one day, "2W" for two weeks, "3M" for one quarter. Can be used as an argument with any function containing a timeframe parameter.

Example


          indicator("Timeframe Example", overlay=true)
plot(interval.interval == "1D" ? 1 : 0, color=color.blue, title="Daily Timeframe Signal")
        

Type

simple string