Profit Reminder
// 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("Profit Reminder", shorttitle = "Take Profits!", overlay = true)

phrase1 = input.string("Don't Be Greedy. \nTake Profits! 💸", title = "Phrase 1")
day_target = input.float(250, title = "Profit")
phrase2 = input.string("Consistency is 🔑! \nIt's YOUR Money!", title = "Phrase 2")


tl1 = input.string("middle", title = "Table Location", options = ["top", "middle", "bottom"], group = "Table Settings", inline = "1")
tl2 = input.string("right", title = "", options = ["left", "center", "right"], group = "Table Settings", inline = "1")
color1 = input.color(color.rgb(0,0,0), title = "Text Color", inline = "c_1", group = "Table Settings")
color3 = input.color(color.rgb(255,150,0), title = "Outline Color", inline = "c_2", group = "Table Settings")
color2 = input.color(color.rgb(255, 255, 0), title = "Background Color", inline = "c_2", group = "Table Settings")
week_prof = day_target * 5 
month_prof = day_target * 20
year_prof = day_target * 252

var table t1 = table.new(tl1 +"_" + tl2,2,7, frame_color = color3, frame_width = 3, border_color = color3, border_width = 1)

if barstate.islast
    table.cell(t1,1,0, text = phrase1 , bgcolor = color2, text_color = color1, text_halign = text.align_right, text_size = size.large)
    table.cell(t1,1,1, text = "Day: " + str.tostring(str.format("{0, number, currency}",day_target)), bgcolor = color2, text_color = color1, text_halign = text.align_right)
    table.cell(t1,1,2, text = "Week: " + str.tostring(str.format("{0, number, currency}",week_prof)), bgcolor = color2, text_color = color1, text_halign = text.align_right, tooltip = "5 Days")
    table.cell(t1,1,3, text = "Month: " + str.tostring(str.format("{0, number, currency}",month_prof)), bgcolor = color2, text_color = color1, text_halign = text.align_right, tooltip = "30 Days")
    table.cell(t1,1,4, text = "Year: " + str.tostring(str.format("{0, number, currency}",year_prof)), bgcolor = color2, text_color = color1, text_halign = text.align_right, tooltip = "252 Days")
    table.cell(t1,1,5, text = phrase2 , bgcolor = color2, text_color = color1, text_halign = text.align_right, text_size = size.large)