tradingview/mcclellan_oscillator.pine

8 lines
230 B
Plaintext
Raw Permalink Normal View History

2023-10-29 13:22:43 +00:00
//@version=5
indicator("McClellan Oscillator")
advances = request.security("ADVN", "D", close)
declines = request.security("DECN", "D", close)
value = ta.ema(advances - declines, 19) - ta.ema(advances - declines, 39)
plot(value)