fixnan
Syntax Format
fixnan(series)
Overview
The fixnan
function returns a series
where all nan (not a number) values are replaced with the last valid value. This function can help continue the data flow within a script without interruptions.
Parameters
Parameter | Type | Purpose |
---|---|---|
series | series | Input series |
Returns: series
.
Example
div = close / open
correct_value = fixnan(div)