Copy/Paste Levels Creator Tool
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © SamRecio

//@version=5
indicator("Copy/Paste Levels Creator Tool", overlay = true)

linestyle(_input) =>
    _input == "___"?"solid":
     _input == "- - -"?"dashed":
     _input == ". . ."?"dotted":
     _input == "___zone"?"solid_zone":
     _input == "- - -zone"?"dashed_zone":
     _input == ". . .zone"?"dotted_zone":
     na

symbol1 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 1", inline = "2")
col1 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 1", inline = "2")
style1 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 1", inline = "2")
width1 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 1", inline = "2")
txt1 = input.string("", title = "Text", confirm = true, group = "Level 1", inline = "2")
lvls1 = input.string("", title = "Levels", confirm = true, group = "Level 1", inline = "2", tooltip = "LEVELS\nInsert as many levels as needed for this style of line on the specified Ticker.\nSeparate by commas (,)\nNo Spaces\nNo comma at the end!\nExample:\n100,100.5,101,102,103")
output1 = symbol1 + "," + (col1=="default"?" ":col1) + "," + linestyle(style1) + "," + str.tostring(width1*-1) + "," + (txt1 == ""?" ":txt1) + "," + str.replace_all(lvls1," ","") + ";"

tog_2 = input.bool(false, title = "Enable Level 2", confirm = true, group = "Level 2", inline = "1")
symbol2 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 2", inline = "2")
col2 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 2", inline = "2")
style2 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 2", inline = "2")
width2 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 2", inline = "2")
txt2 = input.string("", title = "Text", confirm = true, group = "Level 2", inline = "2")
lvls2 = input.string("", title = "Levels", confirm = true, group = "Level 2", inline = "2")
output2 = tog_2?(symbol2 + "," + (col2=="default"?" ":col2) + "," + linestyle(style2) + "," + str.tostring(width2*-1) + "," + (txt2 == ""?" ":txt2) + "," + str.replace_all(lvls2," ","") + ";"):""

tog_3 = input.bool(false, title = "Enable Level 3", confirm = true, group = "Level 3", inline = "1")
symbol3 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 3", inline = "2")
col3 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 3", inline = "2")
style3 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 3", inline = "2")
width3 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 3", inline = "2")
txt3 = input.string("", title = "Text", confirm = true, group = "Level 3", inline = "2")
lvls3 = input.string("", title = "Levels", confirm = true, group = "Level 3", inline = "2")
output3 = tog_3?(symbol3 + "," + (col3=="default"?" ":col3) + "," + linestyle(style3) + "," + str.tostring(width3*-1) + "," + (txt3 == ""?" ":txt3) + "," + str.replace_all(lvls3," ","") + ";"):""

tog_4 = input.bool(false, title = "Enable Level 4", confirm = true, group = "Level 4", inline = "1")
symbol4 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 4", inline = "2")
col4 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 4", inline = "2")
style4 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 4", inline = "2")
width4 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 4", inline = "2")
txt4 = input.string("", title = "Text", confirm = true, group = "Level 4", inline = "2")
lvls4 = input.string("", title = "Levels", confirm = true, group = "Level 4", inline = "2")
output4 = tog_4?(symbol4 + "," + (col4=="default"?" ":col4) + "," + linestyle(style4) + "," + str.tostring(width4*-1) + "," + (txt4 == ""?" ":txt4) + "," + str.replace_all(lvls4," ","") + ";"):""

tog_5 = input.bool(false, title = "Enable Level 5", confirm = true, group = "Level 5", inline = "1")
symbol5 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 5", inline = "2")
col5 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 5", inline = "2")
style5 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 5", inline = "2")
width5 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 5", inline = "2")
txt5 = input.string("", title = "Text", confirm = true, group = "Level 5", inline = "2")
lvls5 = input.string("", title = "Levels", confirm = true, group = "Level 5", inline = "2")
output5 = tog_5?(symbol5 + "," + (col5=="default"?" ":col5) + "," + linestyle(style5) + "," + str.tostring(width5*-1) + "," + (txt5 == ""?" ":txt5) + "," + str.replace_all(lvls5," ","") + ";"):""

tog_6 = input.bool(false, title = "Enable Level 6", confirm = true, group = "Level 6", inline = "1")
symbol6 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 6", inline = "2")
col6 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 6", inline = "2")
style6 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 6", inline = "2")
width6 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 6", inline = "2")
txt6 = input.string("", title = "Text", confirm = true, group = "Level 6", inline = "2")
lvls6 = input.string("", title = "Levels", confirm = true, group = "Level 6", inline = "2")
output6 = tog_6?(symbol6 + "," + (col6=="default"?" ":col6) + "," + linestyle(style6) + "," + str.tostring(width6*-1) + "," + (txt6 == ""?" ":txt6) + "," + str.replace_all(lvls6," ","") + ";"):""

tog_7 = input.bool(false, title = "Enable Level 7", confirm = true, group = "Level 7", inline = "1")
symbol7 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 7", inline = "2")
col7 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 7", inline = "2")
style7 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 7", inline = "2")
width7 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 7", inline = "2")
txt7 = input.string("", title = "Text", confirm = true, group = "Level 7", inline = "2")
lvls7 = input.string("", title = "Levels", confirm = true, group = "Level 7", inline = "2")
output7 = tog_7?(symbol7 + "," + (col7=="default"?" ":col7) + "," + linestyle(style7) + "," + str.tostring(width7*-1) + "," + (txt7 == ""?" ":txt7) + "," + str.replace_all(lvls7," ","") + ";"):""

tog_8 = input.bool(false, title = "Enable Level 8", confirm = true, group = "Level 8", inline = "1")
symbol8 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 8", inline = "2")
col8 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 8", inline = "2")
style8 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 8", inline = "2")
width8 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 8", inline = "2")
txt8 = input.string("", title = "Text", confirm = true, group = "Level 8", inline = "2")
lvls8 = input.string("", title = "Levels", confirm = true, group = "Level 8", inline = "2")
output8 = tog_8?(symbol8 + "," + (col8=="default"?" ":col8) + "," + linestyle(style8) + "," + str.tostring(width8*-1) + "," + (txt8 == ""?" ":txt8) + "," + str.replace_all(lvls8," ","") + ";"):""

tog_9 = input.bool(false, title = "Enable Level 9", confirm = true, group = "Level 9", inline = "1")
symbol9 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 9", inline = "2")
col9 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 9", inline = "2")
style9 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 9", inline = "2")
width9 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 9", inline = "2")
txt9 = input.string("", title = "Text", confirm = true, group = "Level 9", inline = "2")
lvls9 = input.string("", title = "Levels", confirm = true, group = "Level 9", inline = "2")
output9 = tog_9?(symbol9 + "," + (col9=="default"?" ":col9) + "," + linestyle(style9) + "," + str.tostring(width9*-1) + "," + (txt9 == ""?" ":txt9) + "," + str.replace_all(lvls9," ","") + ";"):""

tog_10 = input.bool(false, title = "Enable Level 10", confirm = true, group = "Level 10", inline = "1")
symbol10 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 10", inline = "2")
col10 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 10", inline = "2")
style10 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 10", inline = "2")
width10 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 10", inline = "2")
txt10 = input.string("", title = "Text", confirm = true, group = "Level 10", inline = "2")
lvls10 = input.string("", title = "Levels", confirm = true, group = "Level 10", inline = "2")
output10 = tog_10?(symbol10 + "," + (col10=="default"?" ":col10) + "," + linestyle(style10) + "," + str.tostring(width10*-1) + "," + (txt10 == ""?" ":txt10) + "," + str.replace_all(lvls10," ","") + ";"):""

tog_11 = input.bool(false, title = "Enable Level 11", confirm = true, group = "Level 11", inline = "1")
symbol11 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 11", inline = "2")
col11 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 11", inline = "2")
style11 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 11", inline = "2")
width11 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 11", inline = "2")
txt11 = input.string("", title = "Text", confirm = true, group = "Level 11", inline = "2")
lvls11 = input.string("", title = "Levels", confirm = true, group = "Level 11", inline = "2", tooltip = "LEVELS\nInsert as many levels as needed for this style of line on the specified Ticker.\nSeparate by commas (,)\nNo Spaces\nNo comma at the end!\nExample:\n100,100.5,101,102,103")
output11 = tog_11?symbol11 + "," + (col11=="default"?" ":col11) + "," + linestyle(style11) + "," + str.tostring(width11*-1) + "," + (txt11 == ""?" ":txt11) + "," + str.replace_all(lvls11," ","") + ";":""

tog_12 = input.bool(false, title = "Enable Level 12", confirm = true, group = "Level 12", inline = "1")
symbol12 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 12", inline = "2")
col12 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 12", inline = "2")
style12 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 12", inline = "2")
width12 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 12", inline = "2")
txt12 = input.string("", title = "Text", confirm = true, group = "Level 12", inline = "2")
lvls12 = input.string("", title = "Levels", confirm = true, group = "Level 12", inline = "2")
output12 = tog_12?(symbol12 + "," + (col12=="default"?" ":col12) + "," + linestyle(style12) + "," + str.tostring(width12*-1) + "," + (txt12 == ""?" ":txt12) + "," + str.replace_all(lvls12," ","") + ";"):""

tog_13 = input.bool(false, title = "Enable Level 13", confirm = true, group = "Level 13", inline = "1")
symbol13 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 13", inline = "2")
col13 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 13", inline = "2")
style13 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 13", inline = "2")
width13 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 13", inline = "2")
txt13 = input.string("", title = "Text", confirm = true, group = "Level 13", inline = "2")
lvls13 = input.string("", title = "Levels", confirm = true, group = "Level 13", inline = "2")
output13 = tog_13?(symbol13 + "," + (col13=="default"?" ":col13) + "," + linestyle(style13) + "," + str.tostring(width13*-1) + "," + (txt13 == ""?" ":txt13) + "," + str.replace_all(lvls13," ","") + ";"):""

tog_14 = input.bool(false, title = "Enable Level 14", confirm = true, group = "Level 14", inline = "1")
symbol14 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 14", inline = "2")
col14 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 14", inline = "2")
style14 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 14", inline = "2")
width14 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 14", inline = "2")
txt14 = input.string("", title = "Text", confirm = true, group = "Level 14", inline = "2")
lvls14 = input.string("", title = "Levels", confirm = true, group = "Level 14", inline = "2")
output14 = tog_14?(symbol14 + "," + (col14=="default"?" ":col14) + "," + linestyle(style14) + "," + str.tostring(width14*-1) + "," + (txt14 == ""?" ":txt14) + "," + str.replace_all(lvls14," ","") + ";"):""

tog_15 = input.bool(false, title = "Enable Level 15", confirm = true, group = "Level 15", inline = "1")
symbol15 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 15", inline = "2")
col15 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 15", inline = "2")
style15 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 15", inline = "2")
width15 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 15", inline = "2")
txt15 = input.string("", title = "Text", confirm = true, group = "Level 15", inline = "2")
lvls15 = input.string("", title = "Levels", confirm = true, group = "Level 15", inline = "2")
output15 = tog_15?(symbol15 + "," + (col15=="default"?" ":col15) + "," + linestyle(style15) + "," + str.tostring(width15*-1) + "," + (txt15 == ""?" ":txt15) + "," + str.replace_all(lvls15," ","") + ";"):""

tog_16 = input.bool(false, title = "Enable Level 16", confirm = true, group = "Level 16", inline = "1")
symbol16 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 16", inline = "2")
col16 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 16", inline = "2")
style16 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 16", inline = "2")
width16 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 16", inline = "2")
txt16 = input.string("", title = "Text", confirm = true, group = "Level 16", inline = "2")
lvls16 = input.string("", title = "Levels", confirm = true, group = "Level 16", inline = "2")
output16 = tog_16?(symbol16 + "," + (col16=="default"?" ":col16) + "," + linestyle(style16) + "," + str.tostring(width16*-1) + "," + (txt16 == ""?" ":txt16) + "," + str.replace_all(lvls16," ","") + ";"):""

tog_17 = input.bool(false, title = "Enable Level 17", confirm = true, group = "Level 17", inline = "1")
symbol17 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 17", inline = "2")
col17 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 17", inline = "2")
style17 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 17", inline = "2")
width17 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 17", inline = "2")
txt17 = input.string("", title = "Text", confirm = true, group = "Level 17", inline = "2")
lvls17 = input.string("", title = "Levels", confirm = true, group = "Level 17", inline = "2")
output17 = tog_17?(symbol17 + "," + (col17=="default"?" ":col17) + "," + linestyle(style17) + "," + str.tostring(width17*-1) + "," + (txt17 == ""?" ":txt17) + "," + str.replace_all(lvls17," ","") + ";"):""

tog_18 = input.bool(false, title = "Enable Level 18", confirm = true, group = "Level 18", inline = "1")
symbol18 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 18", inline = "2")
col18 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 18", inline = "2")
style18 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 18", inline = "2")
width18 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 18", inline = "2")
txt18 = input.string("", title = "Text", confirm = true, group = "Level 18", inline = "2")
lvls18 = input.string("", title = "Levels", confirm = true, group = "Level 18", inline = "2")
output18 = tog_18?(symbol18 + "," + (col18=="default"?" ":col18) + "," + linestyle(style18) + "," + str.tostring(width18*-1) + "," + (txt18 == ""?" ":txt18) + "," + str.replace_all(lvls18," ","") + ";"):""

tog_19 = input.bool(false, title = "Enable Level 19", confirm = true, group = "Level 19", inline = "1")
symbol19 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 19", inline = "2")
col19 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 19", inline = "2")
style19 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 19", inline = "2")
width19 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 19", inline = "2")
txt19 = input.string("", title = "Text", confirm = true, group = "Level 19", inline = "2")
lvls19 = input.string("", title = "Levels", confirm = true, group = "Level 19", inline = "2")
output19 = tog_19?(symbol19 + "," + (col19=="default"?" ":col19) + "," + linestyle(style19) + "," + str.tostring(width19*-1) + "," + (txt19 == ""?" ":txt19) + "," + str.replace_all(lvls19," ","") + ";"):""

tog_20 = input.bool(false, title = "Enable Level 20", confirm = true, group = "Level 20", inline = "1")
symbol20 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 20", inline = "2")
col20 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 20", inline = "2")
style20 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 20", inline = "2")
width20 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 20", inline = "2")
txt20 = input.string("", title = "Text", confirm = true, group = "Level 20", inline = "2")
lvls20 = input.string("", title = "Levels", confirm = true, group = "Level 20", inline = "2")
output20 = tog_20?(symbol20 + "," + (col20=="default"?" ":col20) + "," + linestyle(style20) + "," + str.tostring(width20*-1) + "," + (txt20 == ""?" ":txt20) + "," + str.replace_all(lvls20," ","") + ";"):""

tog_21 = input.bool(false, title = "Enable Level 21", confirm = true, group = "Level 21", inline = "1")
symbol21 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 21", inline = "2")
col21 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 21", inline = "2")
style21 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 21", inline = "2")
width21 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 21", inline = "2")
txt21 = input.string("", title = "Text", confirm = true, group = "Level 21", inline = "2")
lvls21 = input.string("", title = "Levels", confirm = true, group = "Level 21", inline = "2", tooltip = "LEVELS\nInsert as many levels as needed for this style of line on the specified Ticker.\nSeparate by commas (,)\nNo Spaces\nNo comma at the end!\nExample:\n100,100.5,101,102,103")
output21 = tog_21?symbol21 + "," + (col21=="default"?" ":col21) + "," + linestyle(style21) + "," + str.tostring(width21-1) + "," + (txt21 == ""?" ":txt21) + "," + str.replace_all(lvls21," ","") + ";":""

tog_22 = input.bool(false, title = "Enable Level 22", confirm = true, group = "Level 22", inline = "1")
symbol22 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 22", inline = "2")
col22 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 22", inline = "2")
style22 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 22", inline = "2")
width22 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 22", inline = "2")
txt22 = input.string("", title = "Text", confirm = true, group = "Level 22", inline = "2")
lvls22 = input.string("", title = "Levels", confirm = true, group = "Level 22", inline = "2")
output22 = tog_22?(symbol22 + "," + (col22=="default"?" ":col22) + "," + linestyle(style22) + "," + str.tostring(width22-1) + "," + (txt22 == ""?" ":txt22) + "," + str.replace_all(lvls22," ","") + ";"):""

tog_23 = input.bool(false, title = "Enable Level 23", confirm = true, group = "Level 23", inline = "1")
symbol23 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 23", inline = "2")
col23 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 23", inline = "2")
style23 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 23", inline = "2")
width23 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 23", inline = "2")
txt23 = input.string("", title = "Text", confirm = true, group = "Level 23", inline = "2")
lvls23 = input.string("", title = "Levels", confirm = true, group = "Level 23", inline = "2")
output23 = tog_23?(symbol23 + "," + (col23=="default"?" ":col23) + "," + linestyle(style23) + "," + str.tostring(width23-1) + "," + (txt23 == ""?" ":txt23) + "," + str.replace_all(lvls23," ","") + ";"):""

tog_24 = input.bool(false, title = "Enable Level 24", confirm = true, group = "Level 24", inline = "1")
symbol24 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 24", inline = "2")
col24 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 24", inline = "2")
style24 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 24", inline = "2")
width24 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 24", inline = "2")
txt24 = input.string("", title = "Text", confirm = true, group = "Level 24", inline = "2")
lvls24 = input.string("", title = "Levels", confirm = true, group = "Level 24", inline = "2")
output24 = tog_24?(symbol24 + "," + (col24=="default"?" ":col24) + "," + linestyle(style24) + "," + str.tostring(width24-1) + "," + (txt24 == ""?" ":txt24) + "," + str.replace_all(lvls24," ","") + ";"):""

tog_25 = input.bool(false, title = "Enable Level 25", confirm = true, group = "Level 25", inline = "1")
symbol25 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 25", inline = "2")
col25 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 25", inline = "2")
style25 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 25", inline = "2")
width25 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 25", inline = "2")
txt25 = input.string("", title = "Text", confirm = true, group = "Level 25", inline = "2")
lvls25 = input.string("", title = "Levels", confirm = true, group = "Level 25", inline = "2")
output25 = tog_25?(symbol25 + "," + (col25=="default"?" ":col25) + "," + linestyle(style25) + "," + str.tostring(width25-1) + "," + (txt25 == ""?" ":txt25) + "," + str.replace_all(lvls25," ","") + ";"):""

tog_26 = input.bool(false, title = "Enable Level 26", confirm = true, group = "Level 26", inline = "1")
symbol26 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 26", inline = "2")
col26 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 26", inline = "2")
style26 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 26", inline = "2")
width26 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 26", inline = "2")
txt26 = input.string("", title = "Text", confirm = true, group = "Level 26", inline = "2")
lvls26 = input.string("", title = "Levels", confirm = true, group = "Level 26", inline = "2")
output26 = tog_26?(symbol26 + "," + (col26=="default"?" ":col26) + "," + linestyle(style26) + "," + str.tostring(width26-1) + "," + (txt26 == ""?" ":txt26) + "," + str.replace_all(lvls26," ","") + ";"):""

tog_27 = input.bool(false, title = "Enable Level 27", confirm = true, group = "Level 27", inline = "1")
symbol27 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 27", inline = "2")
col27 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 27", inline = "2")
style27 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 27", inline = "2")
width27 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 27", inline = "2")
txt27 = input.string("", title = "Text", confirm = true, group = "Level 27", inline = "2")
lvls27 = input.string("", title = "Levels", confirm = true, group = "Level 27", inline = "2")
output27 = tog_27?(symbol27 + "," + (col27=="default"?" ":col27) + "," + linestyle(style27) + "," + str.tostring(width27-1) + "," + (txt27 == ""?" ":txt27) + "," + str.replace_all(lvls27," ","") + ";"):""

tog_28 = input.bool(false, title = "Enable Level 28", confirm = true, group = "Level 28", inline = "1")
symbol28 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 28", inline = "2")
col28 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 28", inline = "2")
style28 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 28", inline = "2")
width28 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 28", inline = "2")
txt28 = input.string("", title = "Text", confirm = true, group = "Level 28", inline = "2")
lvls28 = input.string("", title = "Levels", confirm = true, group = "Level 28", inline = "2")
output28 = tog_28?(symbol28 + "," + (col28=="default"?" ":col28) + "," + linestyle(style28) + "," + str.tostring(width28-1) + "," + (txt28 == ""?" ":txt28) + "," + str.replace_all(lvls28," ","") + ";"):""

tog_29 = input.bool(false, title = "Enable Level 29", confirm = true, group = "Level 29", inline = "1")
symbol29 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 29", inline = "2")
col29 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 29", inline = "2")
style29 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 29", inline = "2")
width29 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 29", inline = "2")
txt29 = input.string("", title = "Text", confirm = true, group = "Level 29", inline = "2")
lvls29 = input.string("", title = "Levels", confirm = true, group = "Level 29", inline = "2")
output29 = tog_29?(symbol29 + "," + (col29=="default"?" ":col29) + "," + linestyle(style29) + "," + str.tostring(width29-1) + "," + (txt29 == ""?" ":txt29) + "," + str.replace_all(lvls29," ","") + ";"):""


tog_30 = input.bool(false, title = "Enable Level 30", confirm = true, group = "Level 30", inline = "1")
symbol30 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 30", inline = "2")
col30 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 30", inline = "2")
style30 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 30", inline = "2")
width30 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 30", inline = "2")
txt30 = input.string("", title = "Text", confirm = true, group = "Level 30", inline = "2")
lvls30 = input.string("", title = "Levels", confirm = true, group = "Level 30", inline = "2")
output30 = tog_30?(symbol30 + "," + (col30=="default"?" ":col30) + "," + linestyle(style30) + "," + str.tostring(width30-1) + "," + (txt30 == ""?" ":txt30) + "," + str.replace_all(lvls30," ","") + ";"):""

tog_31 = input.bool(false, title = "Enable Level 31", confirm = true, group = "Level 31", inline = "1")
symbol31 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 31", inline = "2")
col31 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 31", inline = "2")
style31 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 31", inline = "2")
width31 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 31", inline = "2")
txt31 = input.string("", title = "Text", confirm = true, group = "Level 31", inline = "2")
lvls31 = input.string("", title = "Levels", confirm = true, group = "Level 31", inline = "2", tooltip = "LEVELS\nInsert as many levels as needed for this style of line on the specified Ticker.\nSeparate by commas (,)\nNo Spaces\nNo comma at the end!\nExample:\n100,100.5,101,102,103")
output31 = tog_31?symbol31 + "," + (col31=="default"?" ":col31) + "," + linestyle(style31) + "," + str.tostring(width31-1) + "," + (txt31 == ""?" ":txt31) + "," + str.replace_all(lvls31," ","") + ";":""

tog_32 = input.bool(false, title = "Enable Level 32", confirm = true, group = "Level 32", inline = "1")
symbol32 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 32", inline = "2")
col32 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 32", inline = "2")
style32 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 32", inline = "2")
width32 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 32", inline = "2")
txt32 = input.string("", title = "Text", confirm = true, group = "Level 32", inline = "2")
lvls32 = input.string("", title = "Levels", confirm = true, group = "Level 32", inline = "2")
output32 = tog_32?(symbol32 + "," + (col32=="default"?" ":col32) + "," + linestyle(style32) + "," + str.tostring(width32-1) + "," + (txt32 == ""?" ":txt32) + "," + str.replace_all(lvls32," ","") + ";"):""

tog_33 = input.bool(false, title = "Enable Level 33", confirm = true, group = "Level 33", inline = "1")
symbol33 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 33", inline = "2")
col33 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 33", inline = "2")
style33 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 33", inline = "2")
width33 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 33", inline = "2")
txt33 = input.string("", title = "Text", confirm = true, group = "Level 33", inline = "2")
lvls33 = input.string("", title = "Levels", confirm = true, group = "Level 33", inline = "2")
output33 = tog_33?(symbol33 + "," + (col33=="default"?" ":col33) + "," + linestyle(style33) + "," + str.tostring(width33-1) + "," + (txt33 == ""?" ":txt33) + "," + str.replace_all(lvls33," ","") + ";"):""

tog_34 = input.bool(false, title = "Enable Level 34", confirm = true, group = "Level 34", inline = "1")
symbol34 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 34", inline = "2")
col34 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 34", inline = "2")
style34 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 34", inline = "2")
width34 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 34", inline = "2")
txt34 = input.string("", title = "Text", confirm = true, group = "Level 34", inline = "2")
lvls34 = input.string("", title = "Levels", confirm = true, group = "Level 34", inline = "2")
output34 = tog_34?(symbol34 + "," + (col34=="default"?" ":col34) + "," + linestyle(style34) + "," + str.tostring(width34-1) + "," + (txt34 == ""?" ":txt34) + "," + str.replace_all(lvls34," ","") + ";"):""

tog_35 = input.bool(false, title = "Enable Level 35", confirm = true, group = "Level 35", inline = "1")
symbol35 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 35", inline = "2")
col35 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 35", inline = "2")
style35 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 35", inline = "2")
width35 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 35", inline = "2")
txt35 = input.string("", title = "Text", confirm = true, group = "Level 35", inline = "2")
lvls35 = input.string("", title = "Levels", confirm = true, group = "Level 35", inline = "2")
output35 = tog_35?(symbol35 + "," + (col35=="default"?" ":col35) + "," + linestyle(style35) + "," + str.tostring(width35-1) + "," + (txt35 == ""?" ":txt35) + "," + str.replace_all(lvls35," ","") + ";"):""

tog_36 = input.bool(false, title = "Enable Level 36", confirm = true, group = "Level 36", inline = "1")
symbol36 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 36", inline = "2")
col36 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 36", inline = "2")
style36 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 36", inline = "2")
width36 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 36", inline = "2")
txt36 = input.string("", title = "Text", confirm = true, group = "Level 36", inline = "2")
lvls36 = input.string("", title = "Levels", confirm = true, group = "Level 36", inline = "2")
output36 = tog_36?(symbol36 + "," + (col36=="default"?" ":col36) + "," + linestyle(style36) + "," + str.tostring(width36-1) + "," + (txt36 == ""?" ":txt36) + "," + str.replace_all(lvls36," ","") + ";"):""

tog_37 = input.bool(false, title = "Enable Level 37", confirm = true, group = "Level 37", inline = "1")
symbol37 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 37", inline = "2")
col37 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 37", inline = "2")
style37 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 37", inline = "2")
width37 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 37", inline = "2")
txt37 = input.string("", title = "Text", confirm = true, group = "Level 37", inline = "2")
lvls37 = input.string("", title = "Levels", confirm = true, group = "Level 37", inline = "2")
output37 = tog_37?(symbol37 + "," + (col37=="default"?" ":col37) + "," + linestyle(style37) + "," + str.tostring(width37-1) + "," + (txt37 == ""?" ":txt37) + "," + str.replace_all(lvls37," ","") + ";"):""

tog_38 = input.bool(false, title = "Enable Level 38", confirm = true, group = "Level 38", inline = "1")
symbol38 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 38", inline = "2")
col38 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 38", inline = "2")
style38 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 38", inline = "2")
width38 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 38", inline = "2")
txt38 = input.string("", title = "Text", confirm = true, group = "Level 38", inline = "2")
lvls38 = input.string("", title = "Levels", confirm = true, group = "Level 38", inline = "2")
output38 = tog_38?(symbol38 + "," + (col38=="default"?" ":col38) + "," + linestyle(style38) + "," + str.tostring(width38-1) + "," + (txt38 == ""?" ":txt38) + "," + str.replace_all(lvls38," ","") + ";"):""

tog_39 = input.bool(false, title = "Enable Level 39", confirm = true, group = "Level 39", inline = "1")
symbol39 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 39", inline = "2")
col39 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 39", inline = "2")
style39 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 39", inline = "2")
width39 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 39", inline = "2")
txt39 = input.string("", title = "Text", confirm = true, group = "Level 39", inline = "2")
lvls39 = input.string("", title = "Levels", confirm = true, group = "Level 39", inline = "2")
output39 = tog_39?(symbol39 + "," + (col39=="default"?" ":col39) + "," + linestyle(style39) + "," + str.tostring(width39-1) + "," + (txt39 == ""?" ":txt39) + "," + str.replace_all(lvls39," ","") + ";"):""


tog_40 = input.bool(false, title = "Enable Level 40", confirm = true, group = "Level 40", inline = "1")
symbol40 = input.symbol("", title  = "Ticker", confirm = true, group = "Level 40", inline = "2")
col40 = input.string("default", title = "Color", options = ["default","red","orange","yellow","green","blue","purple","white","black","gray"], confirm = true, group = "Level 40", inline = "2")
style40 = input.string("___", title = "Style", options = ["___","- - -",". . .","___zone","- - -zone",". . .zone"], confirm = true, group = "Level 40", inline = "2")
width40 = input.int(1, title = "Thickness", minval = 0, maxval = 5, confirm = true, group = "Level 40", inline = "2")
txt40 = input.string("", title = "Text", confirm = true, group = "Level 40", inline = "2")
lvls40 = input.string("", title = "Levels", confirm = true, group = "Level 40", inline = "2")
output40 = tog_40?(symbol40 + "," + (col40=="default"?" ":col40) + "," + linestyle(style40) + "," + str.tostring(width40-1) + "," + (txt40 == ""?" ":txt40) + "," + str.replace_all(lvls40," ","") + ";"):""

if symbol1 == ""
    runtime.error("Please Insert Symbol into Level 1.")
if lvls1 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 1.")
if tog_2 and symbol2 == ""
    runtime.error("Please Insert Symbol into Level 2.")
if tog_2 and lvls2 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 2.")
if tog_3 and symbol3 == ""
    runtime.error("Please Insert Symbol into Level 3.")
if tog_3 and lvls3 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 3.")
if tog_4 and symbol4 == ""
    runtime.error("Please Insert Symbol into Level 4.")
if tog_4 and lvls4 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 4.")
if tog_5 and symbol5 == ""
    runtime.error("Please Insert Symbol into Level 5.")
if tog_5 and lvls5 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 5.")
if tog_6 and symbol6 == ""
    runtime.error("Please Insert Symbol into Level 6.")
if tog_6 and lvls6 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 6.")
if tog_7 and symbol7 == ""
    runtime.error("Please Insert Symbol into Level 7.")
if tog_7 and lvls7 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 7.")
if tog_8 and symbol8 == ""
    runtime.error("Please Insert Symbol into Level 8.")
if tog_8 and lvls8 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 8.")
if tog_9 and symbol9 == ""
    runtime.error("Please Insert Symbol into Level 9.")
if tog_9 and lvls9 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 9.")
if tog_10 and symbol10 == ""
    runtime.error("Please Insert Symbol into Level 10.")
if tog_10 and lvls10 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 10.")    
if tog_11 and symbol11 == ""
    runtime.error("Please Insert Symbol into Level 11.")
if tog_11 and lvls11 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 11.")
if tog_12 and symbol12 == ""
    runtime.error("Please Insert Symbol into Level 12.")
if tog_12 and lvls12 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 12.")
if tog_13 and symbol13 == ""
    runtime.error("Please Insert Symbol into Level 13.")
if tog_13 and lvls13 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 13.")
if tog_14 and symbol14 == ""
    runtime.error("Please Insert Symbol into Level 14.")
if tog_14 and lvls14 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 14.")
if tog_15 and symbol15 == ""
    runtime.error("Please Insert Symbol into Level 15.")
if tog_15 and lvls15 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 15.")
if tog_16 and symbol16 == ""
    runtime.error("Please Insert Symbol into Level 16.")
if tog_16 and lvls16 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 16.")
if tog_17 and symbol17 == ""
    runtime.error("Please Insert Symbol into Level 17.")
if tog_17 and lvls17 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 17.")
if tog_18 and symbol18 == ""
    runtime.error("Please Insert Symbol into Level 18.")
if tog_18 and lvls18 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 18.")
if tog_19 and symbol19 == ""
    runtime.error("Please Insert Symbol into Level 19.")
if tog_19 and lvls19 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 19.")
if tog_20 and symbol20 == ""
    runtime.error("Please Insert Symbol into Level 20.")
if tog_20 and lvls20 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 20.")      
if tog_21 and symbol21 == ""
    runtime.error("Please Insert Symbol into Level 21.")
if tog_21 and lvls21 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 21.")
if tog_22 and symbol22 == ""
    runtime.error("Please Insert Symbol into Level 22.")
if tog_22 and lvls22 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 22.")
if tog_23 and symbol23 == ""
    runtime.error("Please Insert Symbol into Level 23.")
if tog_23 and lvls23 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 23.")
if tog_24 and symbol24 == ""
    runtime.error("Please Insert Symbol into Level 24.")
if tog_24 and lvls24 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 24.")
if tog_25 and symbol25 == ""
    runtime.error("Please Insert Symbol into Level 25.")
if tog_25 and lvls25 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 25.")
if tog_26 and symbol26 == ""
    runtime.error("Please Insert Symbol into Level 26.")
if tog_26 and lvls26 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 26.")
if tog_27 and symbol27 == ""
    runtime.error("Please Insert Symbol into Level 27.")
if tog_27 and lvls27 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 27.")
if tog_28 and symbol28 == ""
    runtime.error("Please Insert Symbol into Level 28.")
if tog_28 and lvls28 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 28.")
if tog_29 and symbol29 == ""
    runtime.error("Please Insert Symbol into Level 29.")
if tog_29 and lvls29 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 29.")
if tog_30 and symbol30 == ""
    runtime.error("Please Insert Symbol into Level 30.")
if tog_30 and lvls30 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 30.")  
if tog_31 and symbol31 == ""
    runtime.error("Please Insert Symbol into Level 31.")
if tog_31 and lvls31 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 31.")
if tog_32 and symbol32 == ""
    runtime.error("Please Insert Symbol into Level 32.")
if tog_32 and lvls32 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 32.")
if tog_33 and symbol33 == ""
    runtime.error("Please Insert Symbol into Level 33.")
if tog_33 and lvls33 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 33.")
if tog_34 and symbol34 == ""
    runtime.error("Please Insert Symbol into Level 34.")
if tog_34 and lvls34 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 34.")
if tog_35 and symbol35 == ""
    runtime.error("Please Insert Symbol into Level 35.")
if tog_35 and lvls35 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 35.")
if tog_36 and symbol36 == ""
    runtime.error("Please Insert Symbol into Level 36.")
if tog_36 and lvls36 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 36.")
if tog_37 and symbol37 == ""
    runtime.error("Please Insert Symbol into Level 37.")
if tog_37 and lvls37 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 37.")
if tog_38 and symbol38 == ""
    runtime.error("Please Insert Symbol into Level 38.")
if tog_38 and lvls38 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 38.")
if tog_39 and symbol39 == ""
    runtime.error("Please Insert Symbol into Level 39.")
if tog_39 and lvls39 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 39.")
if tog_40 and symbol40 == ""
    runtime.error("Please Insert Symbol into Level 40.")
if tog_40 and lvls40 == ""
    runtime.error("Please Insert at Lease 1 Level into Level 40.")  
    
output = "Here are your formatted levels! \n" + 
     output1 + output2 + output3 + output4 + output5 + output6 + output7 + output8 + output9 + output10 +
     output11 + output12 + output13 + output14 + output15 + output16 + output17 + output18 + output19 + output20 +
     output21 + output22 + output23 + output24 + output25 + output26 + output27 + output28 + output29 + output30 +
     output31 + output32 + output33 + output34 + output35 + output36 + output37 + output38 + output39 + output40
alert(output)
