fixnan

Takes a series and hands back a series of the same type, with na values dealt with. Four overloads cover bool, colour, float and int. Where nz lets you name the replacement, fixnan takes no second argument.

fixnan(series bool value) → series bool
fixnan(series color value) → series color
fixnan(series float value) → series float
fixnan(series int value) → series int
ParameterTypeRequiredDescription
valueseries boolyesThe series to work on. Required.

Returns series bool or series color or series float or series int — A series of the same data type as the argument: series bool, series color, series float or series int.

indicator("Delta with na values dealt with")
plot(fixnan(orderflow.delta))

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.
Upgrade