I've remade this indicator. It's totally different to the other version I lost. Itsd a better script with more information and its easier to work with.
Colour legend:
Green = MA is up and price is above MA
Red = MA is down and price is below MA
Green c/w red stars = MA is up but price is below MA
Red c/w green stars = MA is down but price is above MA
Grey c/w red stars = MA is flat but price is below MA
Grey c/w green stars = MA is flat but price is above MA