Skip to content

Instantly share code, notes, and snippets.

@cocodrino
Last active Jun 27, 2020
Embed
What would you like to do?
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