Skip to content

Instantly share code, notes, and snippets.

Last active Jun 27, 2020
What would you like to do?
Moving Averages helper for detect Elliot Waves
//@Author: cocodrino
//This indicator was made to allow three moving averages to be displayed without needing to use up 3 charting indicators individually
// based on
study(title="MA Elliot Helpers", shorttitle="Melliot", overlay=true)
out = ema(input(high, title="Source"), input(21, minval=1, title="Length"))
out2 = ema(input(low, title="Source2"), input(21, minval=1, title="Length2"))
out3 = ema(input(close, title="Source3"), input(144, minval=1, title="Length3"))
out4 = ema(input(close, title="Source3"), input(544, minval=1, title="Length4"))
plot(out, title="EMA 21 high", color=red)
plot(out2, title="EMA 21 low", color=green)
plot(out3, title="EMA 144 close", color=blue)
plot(out4, title="EMA 544 close", color=yellow)
length = input(20, minval=1)
src = input(close, title="Source")
hullma = wma(2*wma(src, length/2)-wma(src, length), round(sqrt(length)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment