talib.crossunder

The mirror of talib.crossover: true on the bar where source1 crosses below source2.

talib.crossunder(series float source1, series float source2) → series bool
ParameterTypeRequiredDescription
source1series floatyesThe series doing the crossing.
source2series floatyesThe series being crossed.

Returns series bool — A series bool, true on the downward crossing bar.

indicator("Close crosses below the open")
plotshape(talib.crossunder(close, open), title = "Cross down")

See also talib.alma · talib.atr · talib.barssince

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade