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")
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.