Bollinger, kaufman ve emalar indikatörü - Borsarazzi

Bollinger, kaufman ve emalar indikatörü

Bollinger, kaufman ve önemli ema periyotlarının birleştirilmiş tek indikatör haline getirilmiş kodları. 

 

//@version=4
study(title="traderatb bollinger kaufman emalar", shorttitle="traderatb bollinger kaufman emalar)", 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.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")

///////////bolinger balonu

// SMA20
len2 = input(20, minval=1)
src2 = input(close)
out2 = sma(src2, len2)
plot(out2, color=color.black, linewidth = 1)

// BB contraction value (medium tight)
contraction_value = 0.2
// BB contraction value (very tight)
contraction_value2 = 0.1

// 2xSTDEV BB calculation
dev = stdev(src2, len2)
upper_BB = out2  + 2*dev
lower_BB = out2  - 2*dev
x1 = plot(upper_BB, color=color.black, linewidth = 1)
x2 = plot(lower_BB, color=color.black, linewidth = 1)

contraction = (upper_BB-lower_BB)/out2

//fills the BBands according to the contraction value (threshold)
fill(x1, x2, color = contraction > contraction_value ? color.black : contraction < contraction_value2 ? color.yellow: color.red)

plot(close)


İndikatör ve stratejilerin tradingview den linklerine, otomatik ekleme, favorilere alma sayfasına ulaşmak için oluşturulan bu konuyu ziyaret edebilirsiniz. 

 

 

Ayrıca; Tradingview tarama yöntemlerini buradan inceleyebilirsiniz.
Tradingview için oluşturulmuş ücretsiz indikatörleri ise buradan inceleyebilirsiniz.




Ara