```
input Daily = AggregationPeriod.DAY;
#plot YesterdayAccountNetLiq = if getlastday() == getday() then getnetliq() else double.nan;
declare lower;
#def previous = gettotalCash()[1];
#def today = gettotalCash();
#def nettoday = today-previous;
input DailyGoal = .04;
input DailyMaxLoss = .02;
def cash = gettotalCash();
def today = GetDay() == GetLastDay();
def todayNetLiq = GetNetLiq();
def yestNetLiq = if today then yestNetLiq[1] else GetNetLiq();
def TodayPL = todayNetLiq - yestNetLiq;
def DayDec = (todayNetLiq / yestNetLiq) - 1;
def DailyMaxLossNumber = round((highest(todaynetLiq)*dailyMaxLoss),0);
def DailyMaxLossFloor = (highest(todaynetLiq)-dailymaxLossnumber);
def TofaysPLhigh = highest(todaynetliq);
plot myvalue = (todayNetLiq / yestNetLiq);
AddLabel(yes, " Today's Goal: $" + Round((yestNetLiq * DailyGoal), 0) + " (" + aspercent(dailyGoal) + ") ", Color.WHITE);
AddLabel(yes, " Today's P/L: $" + TodayPL + " ", if TodayPL > 0 then Color.GREEN else if TodayPL < 0 then Color.LIGHT_RED else Color.WHITE);
AddLabel(yes, " % of Goal: " + AsPercent((todayNetLiq - yestNetLiq)/(Round((yestNetLiq * DailyGoal), 0))) + " ", if myvalue == 1 then Color.WHITE else if myvalue between 01 and 1.01 then color.light_green else if myvalue between 1.01 and 1.02 then getcolor(6) else if myvalue > 1.02 then Color.GREEN else if myvalue between -0.99 and -0.98 then color.red else if myvalue > -0.97 then Color.RED else Color.BLACK);
addlabel(yes, " Daily Max Loss: $" + highest(dailyMaxLossnumber) + " (" + aspercent(dailymaxLoss) + ") ", color.white);
AddLabel(yes, "***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***MAX LOSS***" + AsPercent((todayNetLiq / yestNetLiq) - 1), if (todayNetLiq < (DailyMaxLossFloor)) then Color.RED else Color.BLACK);
#This will change entire chart background:
#assignBackgroundColor(if myvalue == 0 then color.white else if myvalue > 0 then color.current else color.black);
#plot pct = (nettoday/previous);
#addlabel(yes, aspercent(pct));
#plot highestvalue = highest(myvalue);
```