I went looking for a script like this one, but I couldn't find one...so I created it.
It's a simple script which allows the user to select different moving average options, then color the moving average depending on if it's rising (green) or falling (red) over a set "lookback". Optionally, the user can easily specify things like line-width. Also, if there is a new close above or below a moving average, the script draws green or red lights above or below the candles (like a traffic light). In addition, I've added an alert condition which allows the user to set an alert if there is a new close above or below a moving average. This way, you can just wait for the alert instead of looking at charts all day long.