The Week one shows the label correctly, but the month one is just black, tried troubleshooting, but was not getting anywhere. Please help
Code:
def TWeek_H = close(period = AggregationPeriod.WEEK,priceType= PriceType.LAST);
def TWeek_L = open(period =AggregationPeriod.WEEK);
def TMonth_H = close(period = AggregationPeriod.MONTH,priceType= PriceType.LAST);
def TMonth_L = open(period =AggregationPeriod.MONTH);
AddLabel(yes, "Week", if TWeek_H > TWeek_L then Color.GREEN else Color.RED);
AddLabel(yes, "Month", if TMonth_H > TMonth_L then Color.GREEN else Color.RED);