//@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)