LonesomeTheBlue

Bollinger Bands MTF [LonesomeTheBlue]

With this script you can follow Bollinger Bands for current and higher time frame together. Higher time frame is calculated by script.

if current period
1m => higher period=5m
3m => higher period=5m
5m => higher period=15m
15m => higher period=1h
30m => higher period=1h
45m => higher period=1h
1h => higher period=4h
2h => higher period=4h
3h => higher period=4h
4h => higher period=1day
1day => higher period=1week
Sürüm Notları: in this new version you can choose the time frame, it's not automatic.
Sürüm Notları: upgraded to v4
Favori Komutlardan Çıkart Favori Komutlara Ekle
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Yorumlar

Version 4 of this script

//@version=4
study("Bollinger Bands MTF ", overlay=true)
//HigherTimeFrame = period == '1' ? '5' : (period == '3' ? '5' : (period == '5' ? '15' : (period == '15' ? '60' : (period == '30' ? '60' : (period == '45' ? '60' : (period == '60' ? '240' : (period == '120' ? '240' : (period == '180' ? '240' : (period == '240' ? 'D' : (period == 'D' ? 'W' : 'W'))))))))))

HigherTimeFrame = input(title="Higher time frame", type=input.resolution, defval='60')

bblength = input(20, title="Length", minval=1)
sdtspm = input(2.0, title="Mult", minval=1.0)
basis = sma(close, bblength)
dev = sdtspm * stdev(close, bblength)
upper = basis + dev
lower = basis - dev
L1 = plot(upper, color=color.gray,title="BB Upper Band")
L2 = plot(lower, color=color.gray,title="BB Lower Band")
plot(basis, color=color.black,title="BB Mid Band")
fill(L1, L2, color=color.green, transp=60)

altmid = sma(security((syminfo.tickerid), HigherTimeFrame, basis),8)
altupper = sma(security((syminfo.tickerid), HigherTimeFrame, upper),8)
altlower = sma(security((syminfo.tickerid), HigherTimeFrame, lower),8)
plot(altmid, color=color.black, title="BB Alt Mid Band",linewidth=2)
LA1 = plot(altupper, color=color.black, title="BB Alt Upper Band",linewidth=2)
LA2 = plot(altlower, color=color.black, title="BB Alt Lower Band",linewidth=2)
fill(LA1, LA2, color=color.green, transp=30)
Cevap Gönder
Ana Sayfa Hisse Senedi Takipçisi Forex Takipçisi Kripto Takipçisi Ekonomik Takvim Nasıl Çalışır Grafik Özellikleri Ücretlendirme Tanıdık yönlendirme Kurallarımız Destek Merkezi Web Sitesi & Aracı Kurum Çözümleri Görsel Bileşenler(Widget) Grafik Çözümleri Hafif Grafik Kitaplığı Blog ve Haberler Twitter
Profil Profil Ayarları Hesap ve Ödemeler Tavsiye edilen arkadaşlar Koinler Destek Kayıtlarım Destek Merkezi Yayınlanmış Fikirler Takip Edenler Takip ediliyor Özel Mesajlar Sohbet Çıkış