Comprehensive documentation for TradingView Pine Script indicators and trading strategies
The Floating Labels system provides dynamic, right-side labels that display key technical information including Bollinger Band values, EMA extensions, pivot points, and Low of Day levels. These labels update in real-time and can be positioned to avoid chart clutter.
Location: Below price (low[1] - 2 * ATR)
Content: BB values for multiple timeframes (30m, 1h, 2h, 4h, 6h)
Format:
30M: lower / upper
1H: lower / upper
2H: lower / upper
4H: lower / upper
6H: lower / upper
Color: Blue background, white text
Status: Currently shows placeholder values (calculations removed to reduce calls)
Location: Above price (low[1] + 2 * ATR)
Content: Extended EMA values and percentages
Format:
20 EMA (hourly): X% (value) / extended
5 EMA: X% (value) / extended
10 EMA: X% (value) / extended
20 EMA: X% (value) / extended
Background: Green when positive, red when negative
Color: White text
Location: Above price (low[1] + 4 * ATR)
Content: R1, Pivot, S1, S2 values
Format: R1: X.XXX \Pivot: X.XXX \S1: X.XXX \S2: X.XXX
Color: Orange background, white text
Location: At previous day’s low price
Content: Previous day’s low value
Format: Price value
Background: Green if low < close, red if low > close
Color: White text
// Label creation with cleanup
var label bb_label = na
if not na(bb_label)
label.delete(bb_label)
if not remove_floats
bb_label := label.new(bar_index + float_offset, price, text, ...)