second - Pine Script Variable
second
Section titled “second”Overview
Section titled “Overview”Current bar second in exchange timezone.
intQualifier
Section titled “Qualifier”series
Remarks
Section titled “Remarks”- Returns the second based on the bar’s opening time in the exchange timezone.
- Guard with
timeframe.issecondswhen building logic that only makes sense on second charts.
Example
Section titled “Example”//@version=6indicator("30-second ticks", overlay=true)
isSecondChart = timeframe.issecondshighlight = isSecondChart and second % 30 == 0
plotshape(highlight, style=shape.circle, location=location.bottom, size=size.tiny)