From 064454c085e4ce3fc663890b627fec1e8a75d1a1 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sun, 29 Oct 2023 06:22:43 -0700 Subject: [PATCH] Add McClellan Oscillator Indicator --- mcclellan_oscillator.pine | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mcclellan_oscillator.pine 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