Skip to content
Algo Trade Analytics Docs

ta.crossunder() - Pine Script Function

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.

ta.crossunder(source1, source2) → series bool
NameTypeDescription
source1series int/floatFirst data series.

true if source1 crossed under source2 otherwise false.