//@version=5
indicator("My table")
//Set table

var table myTable = table.new(position.top_right,2,2,color.black,color.white)

//Visualize table

if barstate.islast
    table.cell (myTable,0,0, text = "Open: " + str.tostring(open),text_color = color.white)
    table.cell(myTable,0,1, text = "Close: " + str.tostring(close),text_color = color.white)
    table.cell(myTable,1,0, text = "High: " + str.tostring(high),text_color = color.white)
    table.cell(myTable,1,1, text = "Low: " + str.tostring(low),text_color = color.white)
plot(na)