OPEN-SOURCE SCRIPT
5 SMA Set + Bollinger Bands follow this especially 5 day average

5 SMA Set + Bollinger Bands follow this especially 5 day average is important
//version=5
indicator("5'li SMA Seti + Bollinger Bands", overlay=true, max_lines_count=10)
// === ORİJİNAL 5'Lİ SMA SETİ (HİÇ DOKUNMADIM) ===
len1 = 1
len5 = 5
sma1_low = ta.sma(low, len1)
sma1_high = ta.sma(high, len1)
sma5_low = ta.sma(low, len5)
sma5_high = ta.sma(high, len5)
sma5_close = ta.sma(close, len5)
plot(sma1_low, title="1 Periyot Düşük SMA", color=#8B0000, linewidth=4, style=plot.style_circles)
plot(sma1_high, title="1 Periyot Yüksek SMA", color=#006400, linewidth=4, style=plot.style_circles)
plot(sma5_low, title="5 Periyot Düşük SMA", color=#FF4040, linewidth=2, style=plot.style_line)
plot(sma5_high, title="5 Periyot Yüksek SMA", color=#90EE90, linewidth=2, style=plot.style_line)
plot(sma5_close, title="5 Periyot Kapanış SMA", color=#DA70D6, linewidth=3, style=plot.style_line)
// === KLASİK BOLLINGER BANDS (20-2) - ORİJİNAL HALİYLE ===
length_bb = 20
mult = 2.0
basis = ta.sma(close, length_bb)
dev = mult * ta.stdev(close, length_bb)
upper = basis + dev
lower = basis - dev
plot(basis, title="BB Orta (SMA 20)", color=#787B86, linewidth=2)
p1 = plot(upper, title="BB Üst Bant", color=#2962FF, linewidth=1)
p2 = plot(lower, title="BB Alt Bant", color=#2962FF, linewidth=1)
fill(p1, p2, color=color.new(#2962FF, 94), title="BB Arka Plan")
//version=5
indicator("5'li SMA Seti + Bollinger Bands", overlay=true, max_lines_count=10)
// === ORİJİNAL 5'Lİ SMA SETİ (HİÇ DOKUNMADIM) ===
len1 = 1
len5 = 5
sma1_low = ta.sma(low, len1)
sma1_high = ta.sma(high, len1)
sma5_low = ta.sma(low, len5)
sma5_high = ta.sma(high, len5)
sma5_close = ta.sma(close, len5)
plot(sma1_low, title="1 Periyot Düşük SMA", color=#8B0000, linewidth=4, style=plot.style_circles)
plot(sma1_high, title="1 Periyot Yüksek SMA", color=#006400, linewidth=4, style=plot.style_circles)
plot(sma5_low, title="5 Periyot Düşük SMA", color=#FF4040, linewidth=2, style=plot.style_line)
plot(sma5_high, title="5 Periyot Yüksek SMA", color=#90EE90, linewidth=2, style=plot.style_line)
plot(sma5_close, title="5 Periyot Kapanış SMA", color=#DA70D6, linewidth=3, style=plot.style_line)
// === KLASİK BOLLINGER BANDS (20-2) - ORİJİNAL HALİYLE ===
length_bb = 20
mult = 2.0
basis = ta.sma(close, length_bb)
dev = mult * ta.stdev(close, length_bb)
upper = basis + dev
lower = basis - dev
plot(basis, title="BB Orta (SMA 20)", color=#787B86, linewidth=2)
p1 = plot(upper, title="BB Üst Bant", color=#2962FF, linewidth=1)
p2 = plot(lower, title="BB Alt Bant", color=#2962FF, linewidth=1)
fill(p1, p2, color=color.new(#2962FF, 94), title="BB Arka Plan")
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.