ta.cross
True when a crosses b in either direction on this bar.
ta.cross(a: float, b: float) -> series bool
Parameters
afloat: The first value; a series or a constant.bfloat: The value a is compared with; a series or a constant.
Example
ta.cross(ta.ema(close, 9), ta.ema(close, 21))