Tradingview için kaufman ve önemli ema (üstsel haraketli ortalamalar) indikatörlerinin birleştirilmiş hali.
Tradingview için kaufman ve önemli ema (üstsel haraketli ortalamalar) indikatörlerinin birleştirilmiş hali. Bu kodları kopyalayıp "pine editör" kısmına yapıştırın yeni script olarak kaydedin.
Nasıl yapılacağı ile ilgili detaylı video anlatımı için https://traderatb.blogspot.com/2023/01/tradingview-indikator-yazma-degistirme.html konusunu inceleyebilirsiniz.
//@version=4////////////////////////////////////////////////////////////// Copyright by HPotter v1.0 26/10/2020// Everyone wants a short-term, fast trading trend that works without large// losses. That combination does not exist. But it is possible to have fast// trading trends in which one must get in or out of the market quickly, but// these have the distinct disadvantage of being whipsawed by market noise// when the market is volatile in a sideways trending market. During these// periods, the trader is jumping in and out of positions with no profit-making// trend in sight. In an attempt to overcome the problem of noise and still be// able to get closer to the actual change of the trend, Kaufman developed an// indicator that adapts to market movement. This indicator, an adaptive moving// average (AMA), moves very slowly when markets are moving sideways but moves// swiftly when the markets also move swiftly, change directions or break out of// a trading range.////////////////////////////////////////////////////////////study(title="traderatb kaufman emalar", shorttitle="traderatb kaufman emalar)", overlay = true)Length = input(21, minval=1)xPrice = closexvnoise = abs(xPrice - xPrice[1])nAMA = 0.0nfastend = 0.666nslowend = 0.0645nsignal = 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.blue, 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.blue, title="5")plot(goldenema22, color=color.yellow, title="22")plot(shortest, color=color.red, title="21")plot(shortest2, color=color.red, title="20")plot(short, color=color.orange, title="55")plot(short2, color=color.orange, title="50")plot(longer, color=color.aqua, title="89")plot(longer2, color=color.aqua, title="100")plot(longest, color=color.black, title="200")
İ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