What is the main difference between 'Crossover' and '<' or '>' functions in automated trading?

How do I make the best use of them when i want to code for oscillators like RSI, MACD.


crossover is a function which gives u signal only when 2 lines intersect.

crossover(ema(close,15),ema(c,30)) (gives u signal only when 1st variable crosses above the second)


When you  put greater than, the signal is true whole time the line is above the other line.

ema(c,15)>ema(c,30)

2 Likes

That’s cool…:). Thanks man