ta.median() - Pine Script Function
ta.median()
Section titled “ta.median()”Overview
Section titled “Overview”Returns the median of the series.
Syntax
Section titled “Syntax”ta.median(source, length) → series intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int | Series of values to process. |
Returns
Section titled “Returns”The median of the series.
Remarks
Section titled “Remarks”- na values in the source series are ignored; the function calculates on the length quantity of non-na values.