Add McClellan Oscillator Indicator
This commit is contained in:
parent
3de5acebf3
commit
064454c085
8
mcclellan_oscillator.pine
Normal file
8
mcclellan_oscillator.pine
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user