Niteya Multi Ticker Dollar-Based Pricing Ver 1.3
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Niteya
//@version=5
indicator(title='Niteya Multi Ticker Dollar-Based Pricing Ver 1.3', shorttitle='Niteya MTUSDBP', overlay=true) 

cur_exchange = input.string("USDTRY", title="Exchange currency", options=["USDTRY", "USDEUR", "USDGBP", "USDJPY", "USDCNY", "USDAUD"])

ticker1 = input.string("XU100", title="Ticker1", options=["XU100", "AKSA", "ALKIM", "ASELS", "DOAS", "EREGL", "FROTO", "HEKTS", "INDES", "ISCTR", "ISDMR", "KCHOL", "KRDMD", "LOGO", "PARSN", "SAHOL", "SARKY", "SASA", "SISE", "TOASO", "TUPRS", "VESBE"])
ticker2 = input.string("AKSA", "Ticker2")
ticker3 = input.string("ASELS", "Ticker3")
ticker4 = input.string("DOAS", "Ticker4")
ticker5 = input.string("EREGL", "Ticker5")
ticker6 = input.string("FROTO", "Ticker6")
ticker7 = input.string("HEKTS", "Ticker7")
ticker8 = input.string("INDES", "Ticker8")
ticker9 = input.string("ISCTR", "Ticker9")
ticker10 = input.string("ISDMR", "Ticker10")
ticker11 = input.string("KCHOL", "Ticker11")
ticker12 = input.string("KRDMD", "Ticker12")
ticker13 = input.string("LOGO", "Ticker13")
ticker14 = input.string("PARSN", "Ticker14")
ticker15 = input.string("SAHOL", "Ticker15")
ticker16 = input.string("SARKY", "Ticker16")
ticker17 = input.string("TOASO", "Ticker17")
ticker18 = input.string("TUPRS", "Ticker18")
ticker19 = input.string("VESBE", "Ticker19")

bar_number = last_bar_index+1

[close_ticker_cur1, close_ticker_high_cur1] = request.security(ticker1, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd1, close_ticker_high_usd1] = request.security(ticker1, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur2, close_ticker_high_cur2] = request.security(ticker2, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd2, close_ticker_high_usd2] = request.security(ticker2, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur3, close_ticker_high_cur3] = request.security(ticker3, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd3, close_ticker_high_usd3] = request.security(ticker3, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur4, close_ticker_high_cur4] = request.security(ticker4, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd4, close_ticker_high_usd4] = request.security(ticker4, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur5, close_ticker_high_cur5] = request.security(ticker5, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd5, close_ticker_high_usd5] = request.security(ticker5, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur6, close_ticker_high_cur6] = request.security(ticker6, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd6, close_ticker_high_usd6] = request.security(ticker6, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur7, close_ticker_high_cur7] = request.security(ticker7, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd7, close_ticker_high_usd7] = request.security(ticker7, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur8, close_ticker_high_cur8] = request.security(ticker8, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd8, close_ticker_high_usd8] = request.security(ticker8, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur9, close_ticker_high_cur9] = request.security(ticker9, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd9, close_ticker_high_usd9] = request.security(ticker9, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur10, close_ticker_high_cur10] = request.security(ticker10, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd10, close_ticker_high_usd10] = request.security(ticker10, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur11, close_ticker_high_cur11] = request.security(ticker11, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd11, close_ticker_high_usd11] = request.security(ticker11, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur12, close_ticker_high_cur12] = request.security(ticker12, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd12, close_ticker_high_usd12] = request.security(ticker12, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur13, close_ticker_high_cur13] = request.security(ticker13, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd13, close_ticker_high_usd13] = request.security(ticker13, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur14, close_ticker_high_cur14] = request.security(ticker14, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd14, close_ticker_high_usd14] = request.security(ticker14, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur15, close_ticker_high_cur15] = request.security(ticker15, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd15, close_ticker_high_usd15] = request.security(ticker15, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur16, close_ticker_high_cur16] = request.security(ticker16, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd16, close_ticker_high_usd16] = request.security(ticker16, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur17, close_ticker_high_cur17] = request.security(ticker17, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd17, close_ticker_high_usd17] = request.security(ticker17, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur18, close_ticker_high_cur18] = request.security(ticker18, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd18, close_ticker_high_usd18] = request.security(ticker18, "D", [close, ta.highest(close, bar_number)], currency="USD")

[close_ticker_cur19, close_ticker_high_cur19] = request.security(ticker19, "D", [close, ta.highest(close, bar_number)], currency=syminfo.currency)
[close_ticker_usd19, close_ticker_high_usd19] = request.security(ticker19, "D", [close, ta.highest(close, bar_number)], currency="USD")

usd_cur = request.security(cur_exchange, "D", close) // Dollar exchange rate

if barstate.islast

    if (str.substring(cur_exchange, 3)==syminfo.currency)
        var table price_table = table.new(position.bottom_left, columns=6, rows=20, bgcolor=color.new(#E0E0E0, 40), border_width=1, border_color=color.white) 
        row = 0
        
        string header1 = '', header2 = '', header3 = '', header4 = '', header5 = '', header6 = ''
        
        if (cur_exchange=="USDTRY")
            header1 := 'Hisse'
            header2 := 'Geçmiş en yüksek fiyat (TL)'
            header3 := 'Geçmiş en yüksek fiyat (USD)'
            header4 := 'Kapanış fiyatı'
            header5 := 'Tahmini fiyat (USD dayalı TL)'
            header6 := 'Artış oranı (%)'
        else             
            header1 := 'Ticker'
            header2 := 'Highest price ever (' + str.substring(cur_exchange, 3) + ')'
            header3 := 'Highest price ever (USD)'
            header4 := 'Close price'
            header5 := 'Estimated price (based on USD)'
            header6 := 'Increase rate (%)'

        table.cell(price_table, 0, row, header1, text_color=color.new(#3C3C3C, 0), bgcolor=color.new(#C8C8C8, 40))
        table.cell(price_table, 1, row, header2, text_color=color.new(#3C3C3C, 0), bgcolor=color.new(#C8C8C8, 40))
        table.cell(price_table, 2, row, header3, text_color=color.new(#3C3C3C, 0), bgcolor=color.new(#C8C8C8, 40))
        table.cell(price_table, 3, row, header4, text_color=color.new(#3C3C3C, 0), bgcolor=color.new(#C8C8C8, 40))
        table.cell(price_table, 4, row, header5, text_color=color.new(#3C3C3C, 0), bgcolor=color.new(#C8C8C8, 40))
        table.cell(price_table, 5, row, header6, text_color=color.new(#3C3C3C, 0), bgcolor=color.new(#C8C8C8, 40))
        
        row += 1 
        
        table.cell(price_table, 0, row, ticker1, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur1, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd1, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur1, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
    
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd1 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd1*usd_cur)/close_ticker_cur1)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
            
        row += 1 
        
        table.cell(price_table, 0, row, ticker2, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur2, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd2, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur2, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd2 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)   
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd2*usd_cur)/close_ticker_cur2)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
        
        row += 1 
        
        table.cell(price_table, 0, row, ticker3, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur3, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd3, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur3, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd3 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)  
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd3*usd_cur)/close_ticker_cur3)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
        
        row += 1 
        
        table.cell(price_table, 0, row, ticker4, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur4, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd4, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur4, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd4 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)        
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd4*usd_cur)/close_ticker_cur4)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker5, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur5, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd5, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur5, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd5 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd5*usd_cur)/close_ticker_cur5)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker6, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur6, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd6, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur6, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd6 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left) 
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd6*usd_cur)/close_ticker_cur6)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker7, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur7, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd7, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur7, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd7 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)        
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd7*usd_cur)/close_ticker_cur7)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    	
        row += 1 
        
        table.cell(price_table, 0, row, ticker8, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur8, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd8, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur8, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd8 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left) 
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd8*usd_cur)/close_ticker_cur8)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker9, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur9, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd9, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur9, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd9 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left) 
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd9*usd_cur)/close_ticker_cur9)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker10, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur10, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd10, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur10, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd10 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)     
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd10*usd_cur)/close_ticker_cur10)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    	
        row += 1 
        
        table.cell(price_table, 0, row, ticker11, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur11, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd11, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur11, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd11 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd11*usd_cur)/close_ticker_cur11)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker12, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur12, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd12, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur12, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd12 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)  
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd12*usd_cur)/close_ticker_cur12)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker13, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur13, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd13, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur13, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd13 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left) 
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd13*usd_cur)/close_ticker_cur13)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker14, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur14, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd14, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur14, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd14 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd14*usd_cur)/close_ticker_cur14)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker15, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur15, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd15, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur15, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd15 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd15*usd_cur)/close_ticker_cur15)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker16, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur16, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd16, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur16, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd16 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)  
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd16*usd_cur)/close_ticker_cur16)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker17, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur17, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd17, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur17, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd17 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)     
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd17*usd_cur)/close_ticker_cur17)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker18, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur18, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd18, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur18, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd18 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd18*usd_cur)/close_ticker_cur18)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)
    
        row += 1 
        
        table.cell(price_table, 0, row, ticker19, text_color=color.blue, text_halign=text.align_left)
        table.cell(price_table, 1, row, str.tostring(close_ticker_high_cur19, "#.###"), text_color=color.black, text_halign=text.align_left)
        table.cell(price_table, 2, row, str.tostring(close_ticker_high_usd19, "#.###"), text_color=color.green, text_halign=text.align_left)
        table.cell(price_table, 3, row, str.tostring(close_ticker_cur19, "#.###"), text_color=color.fuchsia, text_halign=text.align_left)
        table.cell(price_table, 4, row, str.tostring(close_ticker_high_usd19 * usd_cur, "#.###"), text_color=color.orange, text_halign=text.align_left)
        table.cell(price_table, 5, row, str.tostring(((100*close_ticker_high_usd19*usd_cur)/close_ticker_cur19)-100, "#.###"), text_color=color.orange, text_halign=text.align_left)

    else 
        string msg = ''
        if (cur_exchange=="USDTRY")
            msg := 'Grafiğin para birimi dolar çevrim kuru ile uyumlu değil!'
        else 
            msg := 'The currency of the chart is not compatible with the dollar conversion currency!'    
        
        label.new(bar_index-100, low, text=msg, yloc=yloc.belowbar, color=color.red, style=label.style_label_up, textcolor=color.white, textalign=text.align_left) 