na
Tests whether a value is absent. It takes any type and gives back a bool.
This is the test a script needs often, because so much reads na when there is nothing behind it: an instrument property that is unknown, an orderflow figure on a bar with no footprint data, a colour function handed an na.
na(series <any_type> value) → series bool| Parameter | Type | Required | Description |
|---|---|---|---|
value | series | yes | The value to test. Required. Any type is accepted. |
Returns series bool — A series bool: true when the value is absent.
indicator("Bars with no footprint data")
plotshape(na(orderflow.delta), title = "No footprint data")See also values and types
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.