This commit is contained in:
2024-04-22 19:14:49 +03:30
parent 7a89415f30
commit 43acacdfad
3 changed files with 76 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
//@version=5
indicator(title="Double EMA", shorttitle="DEMA", overlay=true, timeframe="", timeframe_gaps=true)
length = input.int(9, minval=1)
src = input(close, title="Source")
e1 = ta.ema(src, length)
e2 = ta.ema(e1, length)
dema = 2 * e1 - e2
plot(dema, "DEMA", color=#43A047)