ta.crossunder() - Pine Script Function
ta.crossunder()
Section titled “ta.crossunder()”Overview
Section titled “Overview”The source1-series is defined as having crossed under source2-series if, on the current bar, the value of source1 is less than the value of source2, and on the previous bar, the value of source1 was greater than or equal to the value of source2.
Syntax
Section titled “Syntax”ta.crossunder(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 under source2 otherwise false.