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")
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。