Functions
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.
Syntax · 1 of 4
fixnan(series int value) → series int
Arguments
value required series int Source used for the calculation. Return Type
series int Syntax · 2 of 4
fixnan(series float value) → series float
Arguments
value required series float Source used for the calculation. Return Type
series float Syntax · 3 of 4
fixnan(series bool value) → series bool
Arguments
value required series bool Source used for the calculation. Return Type
series bool Syntax · 4 of 4
fixnan(series color value) → series color
Arguments
value required series color Source used for the calculation. Return Type
series color Example
//@lipi=2
indicator("fixnan Example", overlay=true)
// Carry the last pivot high forward until the next one
ph = talib.pivothigh(high, 5, 5)
plot(fixnan(ph), title="Last Pivot High", color=color.green)