Skip to content

Instantly share code, notes, and snippets.

@cryppadotta
Created March 2, 2018 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cryppadotta/0f73b9ac679d378c1eeb93777783e0d9 to your computer and use it in GitHub Desktop.
Save cryppadotta/0f73b9ac679d378c1eeb93777783e0d9 to your computer and use it in GitHub Desktop.
//@version=3
study(title="Adjusted Moving Average Exponential by Dotta", shorttitle="EMA Dotta", overlay=true)
len = input(9, minval=1, title="Length")
adjustment = input(-10, minval=-100, maxval=100, title="Adjustment")
src = input(close, title="Source")
out = ema(src, len) * (1 + (adjustment / 100))
plot(out, title="EMA", color=fuchsia)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment