Operators
==
Equal to. Applicable to expressions of any type.
Syntax
expr0 == expr1
Example
indicator("Moving Average Crossover", overlay=true)
// Define two moving averages
fastMA = talib.sma(close, 10)
slowMA = talib.sma(close, 20)
// Check if the fast MA is equal to the slow MA
isEqual = fastMA == slowMA
// Plot moving averages
plot(fastMA, title="Fast MA", color=color.blue)
plot(slowMA, title="Slow MA", color=color.red)