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 boolfixnan(series color value) → series colorfixnan(series float value) → series floatfixnan(series int value) → series int| Parameter | Type | Required | Description |
|---|---|---|---|
value | series bool | yes | The 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.