Constants
na
Stands for a missing value. A series is `na` where there is no data yet, for example `close[1]` on the first bar, and a plot or colour that is `na` is simply not drawn. Test for it with `na(x)`, never with `x == na`, and replace it with `nz(x, alternative)`.
Example
//@lipi=2
indicator("na Example", overlay=true)
// Plot only on up bars: na values leave gaps
plot(close > open ? close : na, title="Up Closes", color=color.green, style=plotStyle.linebr)
// na(close[1]) is true on the first bar only
bgcolor(na(close[1]) ? color.new(color.blue, 0.3) : na)
Type
const na