Trandingview için sma, ema ve kaufman tek indikatör kodları
Trandingview için sma, ema ve kaufman birleşimi indikatör.
//@version=4
////////////////////////////////////////////////////////////
// Copyright by atb v1.0 07/01/2023
////////////////////////////////////////////////////////////
study(title="atb sma ema kauf", shorttitle="atb sma ema kauf)", overlay = true)
Length = input(21, minval=1)
xPrice = close
xvnoise = abs(xPrice - xPrice[1])
nAMA = 0.0
nfastend = 0.666
nslowend = 0.0645
nsignal = abs(xPrice - xPrice[Length])
nnoise = sum(xvnoise, Length)
nefratio = iff(nnoise != 0, nsignal / nnoise, 0)
nsmooth = pow(nefratio * (nfastend - nslowend) + nslowend, 2)
nAMA := nz(nAMA[1]) + nsmooth * (xPrice - nz(nAMA[1]))
plot(nAMA, color=color.rgb(18, 4, 218), title="KAMA")
goldenema5 = ema(close, 5)
goldenema22 = ema(close, 22)
shortest = ema(close, 21)
shortest2 = ema(close, 20)
short = ema(close, 55)
short2 = ema(close, 50)
longer = ema(close, 89)
longer2 = ema(close, 100)
longest = ema(close, 200)
plot(goldenema5, color=color.rgb(33, 243, 68), title="goldema5")
plot(goldenema22, color=color.rgb(184, 172, 68), title="goldema22")
plot(shortest, color=color.red, title="ema21")
plot(shortest2, color=color.rgb(141, 78, 78), title="ema20")
plot(short, color=color.rgb(224, 11, 210), title="ema55")
plot(short2, color=color.rgb(158, 119, 61), title="ema50")
plot(longer, color=color.orange, title="ema89")
plot(longer2, color=color.aqua, title="ema100")
plot(longest, color=color.red, title="ema200")
short20 = sma(close, 20)
short50 = sma(close, 50)
long100 = sma(close, 100)
long200 = sma(close, 200)
plot(short20, color = color.green, title="SMA20")
plot(short50, color = color.blue, title="SMA50")
plot(long100, color = color.orange, title="SMA100")
plot(long200, color = color.red, title="SMA2000")
İndikatör ve stratejilerin tradingview den linklerine, otomatik ekleme, favorilere alma sayfasına ulaşmak için oluşturulan bu konuyu ziyaret edebilirsiniz.
Yorum Gönder