[JL] Control Your Emotions Reminder
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Jesse.Lau

//@version=5

indicator('[JL] Control Your Emotions Reminder', overlay=true, max_bars_back = 4900)



text_= input.string('=====Control Your Emotions=====\n')
text1= input.string('Fear:Fear can cause you to exit trades prematurely or prevent you from entering potentially profitable trades.')
text2= input.string('Greed: Greed can lead to overtrading, holding onto positions for too long, or taking excessive risks.')
text3= input.string('Anxiety: Anxiety can result in impulsive decision-making, affecting your ability to analyze and execute trades effectively.')
text4= input.string('Frustration: Frustration can lead to revenge trading or making rash decisions to recover losses quickly.')
text5= input.string('Overconfidence: Overconfidence can result in excessive risk-taking or a failure to adhere to your trading plan.')
text6= input.string('Euphoria: Euphoria can cause you to ignore risks, leading to potential losses when market conditions change.')
text7= input.string('Regret: Regret can lead to emotional decision-making, such as chasing missed opportunities or holding onto losing positions.')
text8= input.string('Envy: Envy can prompt you to copy other traders without conducting your own analysis, leading to potentially poor decisions.')
text9= input.string('Impatience: Impatience can lead to hasty decision-making, entering trades too early, or exiting too soon.')
text10= input.string('Boredom: Boredom can result in overtrading, entering trades without sufficient analysis, or neglecting your trading plan.')

text_ := text_ + '\n☐ '+text1
text_ := text_ + '\n☐ '+text2
text_ := text_ + '\n☐ '+text3
text_ := text_ + '\n☐ '+text4
text_ := text_ + '\n☐ '+text5
text_ := text_ + '\n☐ '+text6
text_ := text_ + '\n☐ '+text7
text_ := text_ + '\n☐ '+text8
text_ := text_ + '\n☐ '+text9
text_ := text_ + '\n☐ '+text10


bars_right = input.int(10, "x bars right")                                       
position = input.source(close, "Label position")                                     
one_color = input.bool(false, "Label only in one color")                         
lab_color = input.color(#ffd010, "Label color")  
text_color = input.color(color.black,"Text color")
t = timenow + math.round(ta.change(time)*bars_right)
var label lab = na, label.delete(lab), lab := label.new(t, position, text = text_, style=label.style_label_left, yloc=yloc.price, xloc=xloc.bar_time, textalign=text.align_left, color=lab_color, textcolor=text_color,size=size.large )


