NiGapo Notes / Remember Rules / Anchored Text
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © NiGapo

//@version=4
study("Notes / Remember Rules / Anchored Text [smart-money-indicators]", shorttitle="Notes [smart-money-indicators]", overlay=true)

table_top_left = "top_left"
table_top_center = "top_center"
table_top_right = "top_right"
table_middle_left = "middle_left"
table_middle_center = "middle_center"
table_middle_right = "middle_right"
table_bottom_left = "bottom_left"
table_bottom_center = "bottom_center"
table_bottom_right = "bottom_right"


i_bgcolor = input(color.white, title="Background", group="settings")
i_border_color = input(color.white, title="Border", group="settings", inline="border")
i_border_width = input(1, title="", minval=0, maxval=3, group="settings", inline="border")
i_table_position = input(table_bottom_right, title="Position", options=[table_top_left, table_top_center, table_top_right,
  table_middle_left, table_middle_center, table_middle_right,
  table_bottom_left, table_bottom_center, table_bottom_right], group="settings")


table tbl = table.new(i_table_position, columns = 1, rows = 15, bgcolor=i_bgcolor, frame_color = i_border_color, frame_width=-1, border_color=i_border_color, border_width=i_border_width)

i_show_1 = input(false, title="", group="Line 1", inline="text1")
i_color_1 = input(color.white, title="", group="Line 1", inline="text1")
i_bg_1 = input(color.black, title="", group="Line 1", inline="text1")
i_text_1 = input("", type=input.string, title="", group="Line 1", inline="text1")
i_height_1 = input(2.5, title="", group="Line 1", inline="text1_2")
i_size_1 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 1", inline="text1_2")
i_align_1 = input("center", title="", options = ["center","left", "right"], group="Line 1", inline="text1_2")

if i_show_1
    table.cell(tbl, 0, 0, i_text_1, text_size = i_size_1, text_color = i_color_1, height=i_height_1, bgcolor=i_bg_1, text_halign=i_align_1)


i_show_2 = input(false, title="", group="Line 2", inline="text2")
i_color_2 = input(color.white, title="", group="Line 2", inline="text2")
i_bg_2 = input(color.black, title="", group="Line 2", inline="text2")
i_text_2 = input("", type=input.string, title="", group="Line 2", inline="text2")
i_height_2 = input(2.5, title="", group="Line 2", inline="text2_2")
i_size_2 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 2", inline="text2_2")
i_align_2 = input("center", title="", options = ["center","left", "right"], group="Line 2", inline="text2_2")

if i_show_2
    table.cell(tbl, 0, 1, i_text_2, text_size = i_size_2, text_color = i_color_2, height=i_height_2, bgcolor=i_bg_2, text_halign=i_align_2)

i_show_3 = input(false, title="", group="Line 3", inline="text3")
i_color_3 = input(color.white, title="", group="Line 3", inline="text3")
i_bg_3 = input(color.black, title="", group="Line 3", inline="text3")
i_text_3 = input("", type=input.string, title="", group="Line 3", inline="text3")
i_height_3 = input(2.5, title="", group="Line 3", inline="text3_2")
i_size_3 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 3", inline="text3_2")
i_align_3 = input("center", title="", options = ["center","left", "right"], group="Line 3", inline="text3_2")

if i_show_3
    table.cell(tbl, 0, 2, i_text_3, text_size = i_size_3, text_color = i_color_3, height=i_height_3, bgcolor=i_bg_3, text_halign=i_align_3)
    
i_show_4 = input(false, title="", group="Line 4", inline="text4")
i_color_4 = input(color.white, title="", group="Line 4", inline="text4")
i_bg_4 = input(color.black, title="", group="Line 4", inline="text4")
i_text_4 = input("", type=input.string, title="", group="Line 4", inline="text4")
i_height_4 = input(2.5, title="", group="Line 4", inline="text4_2")
i_size_4 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 4", inline="text4_2")
i_align_4 = input("center", title="", options = ["center","left", "right"], group="Line 4", inline="text4_2")

if i_show_4
    table.cell(tbl, 0, 3, i_text_4, text_size = i_size_4, text_color = i_color_4, height=i_height_4, bgcolor=i_bg_4, text_halign=i_align_4)
    
    
i_show_5 = input(false, title="", group="Line 5", inline="text5")
i_color_5 = input(color.white, title="", group="Line 5", inline="text5")
i_bg_5 = input(color.black, title="", group="Line 5", inline="text5")
i_text_5 = input("", type=input.string, title="", group="Line 5", inline="text5")
i_height_5 = input(2.5, title="", group="Line 5", inline="text5_2")
i_size_5 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 5", inline="text5_2")
i_align_5 = input("center", title="", options = ["center","left", "right"], group="Line 5", inline="text5_2")

if i_show_5
    table.cell(tbl, 0, 4, i_text_5, text_size = i_size_5, text_color = i_color_5, height=i_height_5, bgcolor=i_bg_5, text_halign=i_align_5)   
    
    
i_show_6 = input(false, title="", group="Line 6", inline="text6")
i_color_6 = input(color.white, title="", group="Line 6", inline="text6")
i_bg_6 = input(color.black, title="", group="Line 6", inline="text6")
i_text_6 = input("", type=input.string, title="", group="Line 6", inline="text6")
i_height_6 = input(2.5, title="", group="Line 6", inline="text6_2")
i_size_6 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 6", inline="text6_2")
i_align_6 = input("center", title="", options = ["center","left", "right"], group="Line 6", inline="text6_2")

if i_show_6
    table.cell(tbl, 0, 5, i_text_6, text_size = i_size_6, text_color = i_color_6, height=i_height_6, bgcolor=i_bg_6, text_halign=i_align_6)
    

i_show_7 = input(false, title="", group="Line 7", inline="text7")
i_color_7 = input(color.white, title="", group="Line 7", inline="text7")
i_bg_7 = input(color.black, title="", group="Line 7", inline="text7")
i_text_7 = input("", type=input.string, title="", group="Line 7", inline="text7")
i_height_7 = input(2.5, title="", group="Line 7", inline="text7_2")
i_size_7 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 7", inline="text7_2")
i_align_7 = input("center", title="", options = ["center","left", "right"], group="Line 7", inline="text7_2")

if i_show_7
    table.cell(tbl, 0, 6, i_text_7, text_size = i_size_7, text_color = i_color_7, height=i_height_7, bgcolor=i_bg_7, text_halign=i_align_7)
    
    
i_show_8 = input(false, title="", group="Line 8", inline="text8")
i_color_8 = input(color.white, title="", group="Line 8", inline="text8")
i_bg_8 = input(color.black, title="", group="Line 8", inline="text8")
i_text_8 = input("", type=input.string, title="", group="Line 8", inline="text8")
i_height_8 = input(2.5, title="", group="Line 8", inline="text8_2")
i_size_8 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 8", inline="text8_2")
i_align_8 = input("center", title="", options = ["center","left", "right"], group="Line 8", inline="text8_2")

if i_show_8
    table.cell(tbl, 0, 7, i_text_8, text_size = i_size_8, text_color = i_color_8, height=i_height_8, bgcolor=i_bg_8, text_halign=i_align_8)
    
    
i_show_9 = input(false, title="", group="Line 9", inline="text9")
i_color_9 = input(color.white, title="", group="Line 9", inline="text9")
i_bg_9 = input(color.black, title="", group="Line 9", inline="text9")
i_text_9 = input("", type=input.string, title="", group="Line 9", inline="text9")
i_height_9 = input(2.5, title="", group="Line 9", inline="text9_2")
i_size_9 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 9", inline="text9_2")
i_align_9 = input("center", title="", options = ["center","left", "right"], group="Line 9", inline="text9_2")

if i_show_9
    table.cell(tbl, 0, 8, i_text_9, text_size = i_size_9, text_color = i_color_9, height=i_height_9, bgcolor=i_bg_9, text_halign=i_align_9)
    
i_show_10 = input(false, title="", group="Line 10", inline="text10")
i_color_10 = input(color.white, title="", group="Line 10", inline="text10")
i_bg_10 = input(color.black, title="", group="Line 10", inline="text10")
i_text_10 = input("", type=input.string, title="", group="Line 10", inline="text10")
i_height_10 = input(2.5, title="", group="Line 10", inline="text10_2")
i_size_10 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 10", inline="text10_2")
i_align_10 = input("center", title="", options = ["center","left", "right"], group="Line 10", inline="text10_2")

if i_show_10
    table.cell(tbl, 0, 9, i_text_10, text_size = i_size_10, text_color = i_color_10, height=i_height_10, bgcolor=i_bg_10, text_halign=i_align_10)
    
    
i_show_11 = input(false, title="", group="Line 11", inline="text11")
i_color_11 = input(color.white, title="", group="Line 11", inline="text11")
i_bg_11 = input(color.black, title="", group="Line 11", inline="text11")
i_text_11 = input("", type=input.string, title="", group="Line 11", inline="text11")
i_height_11 = input(2.5, title="", group="Line 11", inline="text11_2")
i_size_11 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 11", inline="text11_2")
i_align_11 = input("center", title="", options = ["center","left", "right"], group="Line 11", inline="text11_2")

if i_show_11
    table.cell(tbl, 0, 10, i_text_11, text_size = i_size_11, text_color = i_color_11, height=i_height_11, bgcolor=i_bg_11, text_halign=i_align_11)
    
i_show_12 = input(false, title="", group="Line 12", inline="text12")
i_color_12 = input(color.white, title="", group="Line 12", inline="text12")
i_bg_12 = input(color.black, title="", group="Line 12", inline="text12")
i_text_12 = input("", type=input.string, title="", group="Line 12", inline="text12")
i_height_12 = input(2.5, title="", group="Line 12", inline="text12_2")
i_size_12 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 12", inline="text12_2")
i_align_12 = input("center", title="", options = ["center","left", "right"], group="Line 12", inline="text12_2")

if i_show_12
    table.cell(tbl, 0, 11, i_text_12, text_size = i_size_12, text_color = i_color_12, height=i_height_12, bgcolor=i_bg_12, text_halign=i_align_12)
    
i_show_13 = input(false, title="", group="Line 13", inline="text13")
i_color_13 = input(color.white, title="", group="Line 13", inline="text13")
i_bg_13 = input(color.black, title="", group="Line 13", inline="text13")
i_text_13 = input("", type=input.string, title="", group="Line 13", inline="text13")
i_height_13 = input(2.5, title="", group="Line 13", inline="text13_2")
i_size_13 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 13", inline="text13_2")
i_align_13 = input("center", title="", options = ["center","left", "right"], group="Line 13", inline="text13_2")

if i_show_13
    table.cell(tbl, 0, 12, i_text_13, text_size = i_size_13, text_color = i_color_13, height=i_height_13, bgcolor=i_bg_13, text_halign=i_align_13)
    
i_show_14 = input(false, title="", group="Line 14", inline="text14")
i_color_14 = input(color.white, title="", group="Line 14", inline="text14")
i_bg_14 = input(color.black, title="", group="Line 14", inline="text14")
i_text_14 = input("", type=input.string, title="", group="Line 14", inline="text14")
i_height_14 = input(2.5, title="", group="Line 14", inline="text14_2")
i_size_14 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 14", inline="text14_2")
i_align_14 = input("center", title="", options = ["center","left", "right"], group="Line 14", inline="text14_2")

if i_show_14
    table.cell(tbl, 0, 13, i_text_14, text_size = i_size_14, text_color = i_color_14, height=i_height_14, bgcolor=i_bg_14, text_halign=i_align_14)
    

i_show_15 = input(false, title="", group="Line 15", inline="text15")
i_color_15 = input(color.white, title="", group="Line 15", inline="text15")
i_bg_15 = input(color.black, title="", group="Line 15", inline="text15")
i_text_15 = input("", type=input.string, title="", group="Line 15", inline="text15")
i_height_15 = input(2.5, title="", group="Line 15", inline="text15_2")
i_size_15 = input("auto", title="", options = ["tiny", "small", "normal", "large", "auto"], group="Line 15", inline="text15_2")
i_align_15 = input("center", title="", options = ["center","left", "right"], group="Line 15", inline="text15_2")

if i_show_15
    table.cell(tbl, 0, 14, i_text_15, text_size = i_size_15, text_color = i_color_15, height=i_height_15, bgcolor=i_bg_15, text_halign=i_align_15)