declare hide_on_intraday;
def c = close;
def YearOpen = if GetYear() != GetYear()[1] then c[1] else YearOpen[1];
def P_year = (c - YearOpen) / YearOpen;
def Month_First = if GetMonth() != GetMonth()[1] then c[1] else Month_First[1];
def P_month = (c - Month_First) / Month_First;
AddLabel(1, "2019 % = " + AsPercent(P_Year) + " Month % = " + AsPercent(P_Month), Color. White);