Skip to content

Instantly share code, notes, and snippets.

@cocodrino
Last active June 27, 2020 02:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cocodrino/bdd549b25e7daa6036315d1c235ff52d to your computer and use it in GitHub Desktop.
Moving Averages helper for detect Elliot Waves
//@version=1
//@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 https://elitecurrensea.com/education/wave-mystery-solved-via-simple-methods-based-on-fibs-and-mas/
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)))
plot(hullma,color=purple)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment