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 open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.