label as "after", color Greendef earningsDay = HasEarnings(EarningTime.ANY);
if earningsDay = HasEarnings(EarningTime.BEFORE_MARKET)
{
label as "b4", color red
}
if
earningsDay = HasEarnings(EarningTime.AFTER_MARKET)
else
label "during", color orange
plot signal = earningsDay[0];
any help on this please?