fixnan

Replaces na values with the last non-na value of the series.

fixnan(x: any) -> series any

Parameters

Example

lastPivot = fixnan(ta.pivothigh(high, 5, 5))