It's possible that this is normal behaviour, or that we still don't know how to use certain functions well, but we can't plot the Awesome indicator, with the variations from green to red, because either the whole graph stays red, or it stays green.

It only works if, as in the code that I paste below, we paint the bars in graphics separated by their colour:

function run()
{
static var last_awesome;

set(PLOTNOW);

StartDate = 2019;

vars Prices = series(price());

var awesome = AO(Prices);

if (last_awesome >= awesome)
{
plot("Awesome Green", awesome, NEW+BARS, GREEN);
}
else
{
plot("Awesome Red", awesome, NEW+BARS, RED);
}

last_awesome = awesome;
}