diff --git a/mcclellan_oscillator.pine b/mcclellan_oscillator.pine new file mode 100644 index 0000000..18e7458 --- /dev/null +++ b/mcclellan_oscillator.pine @@ -0,0 +1,8 @@ +//@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) \ No newline at end of file