ta.crossover() - Pine Script Function
ta.crossover()
Section titled “ta.crossover()”Overview
Section titled “Overview”The source1-series is defined as having crossed over source2-series if, on the current bar, the value of source1 is greater than the value of source2, and on the previous bar, the value of source1 was less than or equal to the value of source2.
Syntax
Section titled “Syntax”ta.crossover(source1, source2) → series boolParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source1 | series int/float | First data series. |
Returns
Section titled “Returns”true if source1 crossed over source2 otherwise false.