ta.crossunder#
True when series a crosses BELOW series b at bar i — i.e.
SYNTAX#
function ta.crossunder(a: (number | null)[], b: (number | null)[], i: number): booleanARGUMENTS#
a((number | null)[]) — Primary series.b((number | null)[]) — Reference series. Same length asa.i(number) — Current bar index. First valid output ati = 1.
RETURNS#
boolean — true on the bar of the crossunder.
REMARKS#
Mirror of ta.crossover. Pure event detector.
EXAMPLE#
if (ta.crossunder(fastEma, slowEma, i)) {
plot.marker('cross-dn', candles[i].high, { color: '#ef5350', shape: 'triangle-down' });
}