Skip to content

Instantly share code, notes, and snippets.

@fredyteheranto
Created May 13, 2021 00:55
Show Gist options
  • Select an option

  • Save fredyteheranto/f8222a70697e5cf68ce4c3c3c8918f49 to your computer and use it in GitHub Desktop.

Select an option

Save fredyteheranto/f8222a70697e5cf68ce4c3c3c8918f49 to your computer and use it in GitHub Desktop.
4EMA for tradingview Script
//4EMA Fredyteheranto Style @Fredyteheranto
study(title="4 EMA Fredyteheranto", shorttitle="Fredyteheranto", overlay=true)
len1 = input(13, minval=8, title="Length")
len2 = input(34, minval=8, title="Length")
len3 = input(200,minval=8, title="Length")
len4 = input(21, minval=8, title="Length")
src = input(close, title="Source")
entryema = ema(src, len1)
fastema = ema(src, len2)
mediumema = ema(src, len3)
slowema = ema(src, len4)
plot(entryema, color=red, linewidth=2, title="ENTRADA EMA")
plot(fastema, color=yellow, linewidth=2, title="RAPIDO EMA")
plot(mediumema, color=green, linewidth=2, title="MEDIA EMA")
plot(slowema, color=black, linewidth=1, title="BAJO EMA")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment