A simple script I wrote that allows you to look at the posture of a moving average. Rates of change can be useful to understanding momentum. Additionally, I have included a signal line so you can see if the posture is more or less than average.
use this like a oscillator (for example RSI)
each time a indicator and condition is bullish it adds +1 if is not then it takes -1
i used the most used value for SMA but anyone can add more to have a rainbow/ribbon
(iff(sma(close,30) >sma(close,30) ,1,-1))+
(iff(sma(close,40) >sma(close,40) ,1,-1))+
to have bars instead of a red...
if the line is red mean the majority of the conditions are turning bull and a possible drop can happen so in a way this is a contrarian indicator
this works only into uptrend on down trend the line will be always yellow
use trend lines and channels to determine trends for example
to increase sensibility lower the "10" to 8 or 7