Hacim v55
BulanikSuCanavr
plain_text
5 months ago
31 kB
70
Indexable
//@version=5 // ╔══════════════════════════════════════════════════════════════════════════════╗ // ║ VOLUME TABLE INDICATOR v1.1 (with Alerts) ║ // ║ Farklı hisse senetlerinin hacim verilerini ve 23 günlük ortalamasını ║ // ║ karşılaştırmalı olarak gösteren özel tablo göstergesi ║ // ╚══════════════════════════════════════════════════════════════════════════════╝ indicator("Custom Symbol Volume Table", overlay=true) // ═══════════════════════════════ ALARM AYARLARI ══════════════════════════════════ showAlerts = input.bool(true, "Alarmları Aktif Et", group="Alarm Ayarları") alertLevel0 = input.float(0.0, "0. Alarm Seviyesi (%)", minval=0.0, step=0.1, group="Alarm Ayarları") / 100 alertLevel1 = input.float(1.0, "1. Alarm Seviyesi (%)", minval=0.0, step=0.1, group="Alarm Ayarları") / 100 alertLevel2 = input.float(2.0, "2. Alarm Seviyesi (%)", minval=0.0, step=0.1, group="Alarm Ayarları") / 100 alertMessage0 = input.string("Hacim ortalamanın üzerine çıktı!", "0. Seviye Alarm Mesajı", group="Alarm Ayarları") alertMessage1 = input.string("Hacim %1'in üzerinde artış gösterdi!", "1. Seviye Alarm Mesajı", group="Alarm Ayarları") alertMessage2 = input.string("Hacim %2'in üzerinde güçlü artış!", "2. Seviye Alarm Mesajı", group="Alarm Ayarları") // ═══════════════════════════════ TABLO AYARLARI ══════════════════════════════════ tablePosition = input.string("top_right", "Tablo Pozisyonu", options=["top_left", "top_center", "top_right", "middle_left", "middle_center", "middle_right", "bottom_left", "bottom_center", "bottom_right"], group="Tablo Ayarları") tableFontSize = input.string("normal", "Font Boyutu", options=["tiny", "small", "normal", "large", "huge"], group="Tablo Ayarları") cellWidth = input.int(6, "Hücre Genişliği (pixel)", minval=1, maxval=200, group="Tablo Ayarları") cellHeight = input.int(3, "Hücre Yüksekliği (pixel)", minval=1, maxval=50, group="Tablo Ayarları") // ═══════════════════════════════ RENK AYARLARI ═══════════════════════════════════ tableBgColor = input.color(color.new(color.black, 95), "Tablo Arkaplan Rengi", group="Tablo Renkleri") headerBgColor = input.color(color.rgb(25, 25, 25), "Başlık Arkaplan Rengi", group="Tablo Renkleri") symbolBgColor = input.color(color.rgb(48, 48, 48), "Sembol Arkaplan Rengi", group="Sembol Renkleri") symbolTextColor = input.color(color.rgb(255, 220, 135), "Sembol Metin Rengi", group="Sembol Renkleri") volumeBgColor = input.color(color.rgb(38, 38, 38), "Hacim Arkaplan Rengi", group="Hacim Renkleri") volumeTextColor = input.color(color.white, "Hacim Metin Rengi", group="Hacim Renkleri") positiveColor = input.color(color.new(color.green, 20), "Pozitif Değer Rengi", group="Değişim Renkleri") negativeColor = input.color(color.new(color.red, 20), "Negatif Değer Rengi", group="Değişim Renkleri") changeTextColor = input.color(color.white, "Değişim Metin Rengi", group="Değişim Renkleri") borderWidth = input.int(1, "Kenarlık Kalınlığı", minval=0, maxval=3, group="Tablo Ayarları") borderColor = input.color(color.gray, "Kenarlık Rengi", group="Tablo Renkleri") // ═══════════════════════════════ SEMBOL GİRİŞLERİ ═════════════════════════════════ sym1 = input.symbol("BIST:AKBNK", "Sembol 1", group="Semboller") sym2 = input.symbol("BIST:GARAN", "Sembol 2", group="Semboller") sym3 = input.symbol("BIST:THYAO", "Sembol 3", group="Semboller") sym4 = input.symbol("BIST:SISE", "Symbol 4", group="Semboller") sym5 = input.symbol("BIST:KCHOL", "Symbol 5", group="Semboller") sym6 = input.symbol("BIST:TUPRS", "Symbol 6", group="Semboller") sym7 = input.symbol("BIST:HALKB", "Symbol 7", group="Semboller") sym8 = input.symbol("BIST:VAKBN", "Symbol 8", group="Semboller") sym9 = input.symbol("BIST:ISCTR", "Symbol 9", group="Semboller") sym10 = input.symbol("BIST:SAHOL", "Symbol 10", group="Semboller") sym11 = input.symbol("BIST:PETKM", "Symbol 11", group="Semboller") sym12 = input.symbol("BIST:ARCLK", "Symbol 12", group="Semboller") sym13 = input.symbol("BIST:FROTO", "Symbol 13", group="Semboller") sym14 = input.symbol("BIST:TOASO", "Symbol 14", group="Semboller") sym15 = input.symbol("BIST:EREGL", "Symbol 15", group="Semboller") sym16 = input.symbol("BIST:EKGYO", "Symbol 16", group="Semboller") sym17 = input.symbol("BIST:ENKAI", "Symbol 17", group="Semboller") sym18 = input.symbol("BIST:TTKOM", "Symbol 18", group="Semboller") sym19 = input.symbol("BIST:VESTL", "Symbol 19", group="Semboller") sym20 = input.symbol("BIST:ZOREN", "Symbol 20", group="Semboller") sym21 = input.symbol("BIST:MGROS", "Symbol 21", group="Semboller") sym22 = input.symbol("BIST:SOKM", "Symbol 22", group="Semboller") sym23 = input.symbol("BIST:DOHOL", "Symbol 23", group="Semboller") sym24 = input.symbol("BIST:ULKER", "Symbol 24", group="Semboller") sym25 = input.symbol("BIST:OTKAR", "Symbol 25", group="Semboller") sym26 = input.symbol("BIST:TAVHL", "Symbol 26", group="Semboller") sym27 = input.symbol("BIST:KOZAA", "Symbol 27", group="Semboller") sym28 = input.symbol("BIST:ALARK", "Symbol 28", group="Semboller") sym29 = input.symbol("BIST:CEMTS", "Symbol 29", group="Semboller") sym30 = input.symbol("BIST:AYGAZ", "Symbol 30", group="Semboller") // ═══════════════════════════════ FONKSİYONLAR ═════════════════════════════════════ f_formatVolume(value) => value >= 1000000000 ? str.tostring(value / 1000000000, "#.##") + "B" : value >= 1000000 ? str.tostring(value / 1000000, "#.##") + "M" : value >= 1000 ? str.tostring(value / 1000, "#.##") + "K" : str.tostring(value) f_getSymbolName(fullSymbol) => array.get(str.split(fullSymbol, ":"), 1) // Alarm kontrol fonksiyonu f_checkAlert(comp, symbol) => if showAlerts and comp >= alertLevel0 // >= 0 kontrolü eklendi symbolName = f_getSymbolName(symbol) if comp >= alertLevel2 alert(symbolName + " " + alertMessage2, alert.freq_once_per_bar_close) else if comp >= alertLevel1 alert(symbolName + " " + alertMessage1, alert.freq_once_per_bar_close) else if comp >= alertLevel0 // Yeni %0 seviyesi kontrolü alert(symbolName + " " + alertMessage0, alert.freq_once_per_bar_close) // ═══════════════════════════════ VERİ HESAPLAMALARI ════════════════════════════════ length = input.int(23, "SMA Periyodu", minval=1, tooltip="Ortalama hesaplama süresi", group="Hesaplamalar") vol1 = request.security(sym1, timeframe.period, volume) vol2 = request.security(sym2, timeframe.period, volume) vol3 = request.security(sym3, timeframe.period, volume) vol4 = request.security(sym4, timeframe.period, volume) vol5 = request.security(sym5, timeframe.period, volume) vol6 = request.security(sym6, timeframe.period, volume) vol7 = request.security(sym7, timeframe.period, volume) vol8 = request.security(sym8, timeframe.period, volume) vol9 = request.security(sym9, timeframe.period, volume) vol10 = request.security(sym10, timeframe.period, volume) vol11 = request.security(sym11, timeframe.period, volume) vol12 = request.security(sym12, timeframe.period, volume) vol13 = request.security(sym13, timeframe.period, volume) vol14 = request.security(sym14, timeframe.period, volume) vol15 = request.security(sym15, timeframe.period, volume) vol16 = request.security(sym16, timeframe.period, volume) vol17 = request.security(sym17, timeframe.period, volume) vol18 = request.security(sym18, timeframe.period, volume) vol19 = request.security(sym19, timeframe.period, volume) vol20 = request.security(sym20, timeframe.period, volume) vol21 = request.security(sym21, timeframe.period, volume) vol22 = request.security(sym22, timeframe.period, volume) vol23 = request.security(sym23, timeframe.period, volume) vol24 = request.security(sym24, timeframe.period, volume) vol25 = request.security(sym25, timeframe.period, volume) vol26 = request.security(sym26, timeframe.period, volume) vol27 = request.security(sym27, timeframe.period, volume) vol28 = request.security(sym28, timeframe.period, volume) vol29 = request.security(sym29, timeframe.period, volume) vol30 = request.security(sym30, timeframe.period, volume) avg1 = ta.sma(vol1, length) avg2 = ta.sma(vol2, length) avg3 = ta.sma(vol3, length) avg4 = ta.sma(vol4, length) avg5 = ta.sma(vol5, length) avg6 = ta.sma(vol6, length) avg7 = ta.sma(vol7, length) avg8 = ta.sma(vol8, length) avg9 = ta.sma(vol9, length) avg10 = ta.sma(vol10, length) avg11 = ta.sma(vol11, length) avg12 = ta.sma(vol12, length) avg13 = ta.sma(vol13, length) avg14 = ta.sma(vol14, length) avg15 = ta.sma(vol15, length) avg16 = ta.sma(vol16, length) avg17 = ta.sma(vol17, length) avg18 = ta.sma(vol18, length) avg19 = ta.sma(vol19, length) avg20 = ta.sma(vol20, length) avg21 = ta.sma(vol21, length) avg22 = ta.sma(vol22, length) avg23 = ta.sma(vol23, length) avg24 = ta.sma(vol24, length) avg25 = ta.sma(vol25, length) avg26 = ta.sma(vol26, length) avg27 = ta.sma(vol27, length) avg28 = ta.sma(vol28, length) avg29 = ta.sma(vol29, length) avg30 = ta.sma(vol30, length) // ═══════════════════════════════ ALARM KONTROLLERI ════════════════════════════════ comp1 = (vol1 / avg1) - 1 comp2 = (vol2 / avg2) - 1 comp3 = (vol3 / avg3) - 1 comp4 = (vol4 / avg4) - 1 comp5 = (vol5 / avg5) - 1 comp6 = (vol6 / avg6) - 1 comp7 = (vol7 / avg7) - 1 comp8 = (vol8 / avg8) - 1 comp9 = (vol9 / avg9) - 1 comp10 = (vol10 / avg10) - 1 comp11 = (vol11 / avg11) - 1 comp12 = (vol12 / avg12) - 1 comp13 = (vol13 / avg13) - 1 comp14 = (vol14 / avg14) - 1 comp15 = (vol15 / avg15) - 1 comp16 = (vol16 / avg16) - 1 comp17 = (vol17 / avg17) - 1 comp18 = (vol18 / avg18) - 1 comp19 = (vol19 / avg19) - 1 comp20 = (vol20 / avg20) - 1 comp21 = (vol21 / avg21) - 1 comp22 = (vol22 / avg22) - 1 comp23 = (vol23 / avg23) - 1 comp24 = (vol24 / avg24) - 1 comp25 = (vol25 / avg25) - 1 comp26 = (vol26 / avg26) - 1 comp27 = (vol27 / avg27) - 1 comp28 = (vol28 / avg28) - 1 comp29 = (vol29 / avg29) - 1 comp30 = (vol30 / avg30) - 1 if barstate.isconfirmed f_checkAlert(comp1, sym1) f_checkAlert(comp2, sym2) f_checkAlert(comp3, sym3) f_checkAlert(comp4, sym4) f_checkAlert(comp5, sym5) f_checkAlert(comp6, sym6) f_checkAlert(comp7, sym7) f_checkAlert(comp8, sym8) f_checkAlert(comp9, sym9) f_checkAlert(comp10, sym10) f_checkAlert(comp11, sym11) f_checkAlert(comp12, sym12) f_checkAlert(comp13, sym13) f_checkAlert(comp14, sym14) f_checkAlert(comp15, sym15) f_checkAlert(comp16, sym16) f_checkAlert(comp17, sym17) f_checkAlert(comp18, sym18) f_checkAlert(comp19, sym19) f_checkAlert(comp20, sym20) f_checkAlert(comp21, sym21) f_checkAlert(comp22, sym22) f_checkAlert(comp23, sym23) f_checkAlert(comp24, sym24) f_checkAlert(comp25, sym25) f_checkAlert(comp26, sym26) f_checkAlert(comp27, sym27) f_checkAlert(comp28, sym28) f_checkAlert(comp29, sym29) f_checkAlert(comp30, sym30) // ═══════════════════════════════ TABLO OLUŞTURMA ════════════════════════════════════ var myTable = table.new(position = tablePosition, columns = 3, rows = 31, bgcolor = tableBgColor, border_width = borderWidth, border_color = borderColor) if barstate.islast // Başlıklar table.cell(myTable, 0, 0, "Sembol", bgcolor=headerBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 0, "Hacim", bgcolor=headerBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 0, "Vs " + str.tostring(length) + "g Ort", bgcolor=headerBgColor, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 1 cellColor1 = comp1 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 1, f_getSymbolName(sym1), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 1, f_formatVolume(vol1), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 1, str.tostring(comp1, format.percent), bgcolor=cellColor1, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 2 cellColor2 = comp2 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 2, f_getSymbolName(sym2), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 2, f_formatVolume(vol2), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 2, str.tostring(comp2, format.percent), bgcolor=cellColor2, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 3 cellColor3 = comp3 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 3, f_getSymbolName(sym3), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 3, f_formatVolume(vol3), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 3, str.tostring(comp3, format.percent), bgcolor=cellColor3, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 4 cellColor4 = comp4 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 4, f_getSymbolName(sym4), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 4, f_formatVolume(vol4), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 4, str.tostring(comp4, format.percent), bgcolor=cellColor4, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 5 cellColor5 = comp5 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 5, f_getSymbolName(sym5), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 5, f_formatVolume(vol5), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 5, str.tostring(comp5, format.percent), bgcolor=cellColor5, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 6 cellColor6 = comp6 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 6, f_getSymbolName(sym6), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 6, f_formatVolume(vol6), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 6, str.tostring(comp6, format.percent), bgcolor=cellColor6, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 7 cellColor7 = comp7 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 7, f_getSymbolName(sym7), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 7, f_formatVolume(vol7), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 7, str.tostring(comp7, format.percent), bgcolor=cellColor7, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 8 cellColor8 = comp8 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 8, f_getSymbolName(sym8), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 8, f_formatVolume(vol8), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 8, str.tostring(comp8, format.percent), bgcolor=cellColor8, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 9 cellColor9 = comp9 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 9, f_getSymbolName(sym9), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 9, f_formatVolume(vol9), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 9, str.tostring(comp9, format.percent), bgcolor=cellColor9, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 10 cellColor10 = comp10 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 10, f_getSymbolName(sym10), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 10, f_formatVolume(vol10), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 10, str.tostring(comp10, format.percent), bgcolor=cellColor10, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 11 cellColor11 = comp11 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 11, f_getSymbolName(sym11), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 11, f_formatVolume(vol11), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 11, str.tostring(comp11, format.percent), bgcolor=cellColor11, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 12 cellColor12 = comp12 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 12, f_getSymbolName(sym12), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 12, f_formatVolume(vol12), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 12, str.tostring(comp12, format.percent), bgcolor=cellColor12, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 13 cellColor13 = comp13 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 13, f_getSymbolName(sym13), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 13, f_formatVolume(vol13), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 13, str.tostring(comp13, format.percent), bgcolor=cellColor13, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 14 cellColor14 = comp14 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 14, f_getSymbolName(sym14), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 14, f_formatVolume(vol14), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 14, str.tostring(comp14, format.percent), bgcolor=cellColor14, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 15 cellColor15 = comp15 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 15, f_getSymbolName(sym15), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 15, f_formatVolume(vol15), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 15, str.tostring(comp15, format.percent), bgcolor=cellColor15, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 16 cellColor16 = comp16 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 16, f_getSymbolName(sym16), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 16, f_formatVolume(vol16), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 16, str.tostring(comp16, format.percent), bgcolor=cellColor16, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 17 cellColor17 = comp17 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 17, f_getSymbolName(sym17), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 17, f_formatVolume(vol17), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 17, str.tostring(comp17, format.percent), bgcolor=cellColor17, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 18 cellColor18 = comp18 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 18, f_getSymbolName(sym18), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 18, f_formatVolume(vol18), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 18, str.tostring(comp18, format.percent), bgcolor=cellColor18, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 19 cellColor19 = comp19 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 19, f_getSymbolName(sym19), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 19, f_formatVolume(vol19), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 19, str.tostring(comp19, format.percent), bgcolor=cellColor19, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 20 cellColor20 = comp20 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 20, f_getSymbolName(sym20), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 20, f_formatVolume(vol20), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 20, str.tostring(comp20, format.percent), bgcolor=cellColor20, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 21 cellColor21 = comp21 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 21, f_getSymbolName(sym21), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 21, f_formatVolume(vol21), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 21, str.tostring(comp21, format.percent), bgcolor=cellColor21, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 22 cellColor22 = comp22 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 22, f_getSymbolName(sym22), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 22, f_formatVolume(vol22), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 22, str.tostring(comp22, format.percent), bgcolor=cellColor22, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 23 cellColor23 = comp23 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 23, f_getSymbolName(sym23), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 23, f_formatVolume(vol23), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 23, str.tostring(comp23, format.percent), bgcolor=cellColor23, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 24 cellColor24 = comp24 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 24, f_getSymbolName(sym24), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 24, f_formatVolume(vol24), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 24, str.tostring(comp24, format.percent), bgcolor=cellColor24, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 25 cellColor25 = comp25 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 25, f_getSymbolName(sym25), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 25, f_formatVolume(vol25), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 25, str.tostring(comp25, format.percent), bgcolor=cellColor25, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 26 cellColor26 = comp26 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 26, f_getSymbolName(sym26), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 26, f_formatVolume(vol26), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 26, str.tostring(comp26, format.percent), bgcolor=cellColor26, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 27 cellColor27 = comp27 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 27, f_getSymbolName(sym27), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 27, f_formatVolume(vol27), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 27, str.tostring(comp27, format.percent), bgcolor=cellColor27, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 28 cellColor28 = comp28 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 28, f_getSymbolName(sym28), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 28, f_formatVolume(vol28), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 28, str.tostring(comp28, format.percent), bgcolor=cellColor28, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 29 cellColor29 = comp29 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 29, f_getSymbolName(sym29), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 29, f_formatVolume(vol29), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 29, str.tostring(comp29, format.percent), bgcolor=cellColor29, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) // Sembol 30 cellColor30 = comp30 > 0 ? positiveColor : negativeColor table.cell(myTable, 0, 30, f_getSymbolName(sym30), bgcolor=symbolBgColor, text_color=symbolTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 1, 30, f_formatVolume(vol30), bgcolor=volumeBgColor, text_color=volumeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) table.cell(myTable, 2, 30, str.tostring(comp30, format.percent), bgcolor=cellColor30, text_color=changeTextColor, text_size=tableFontSize, width=cellWidth, height=cellHeight) plot(0, color=color.new(color.black, 100))
Editor is loading...
Leave a Comment