If the 5th bar of the last 5 bars closes above the 50% line of the previous 5 bar average, it stays the same color. If the 5th bar closes below the the 50% average it changes color. 50% range = Average True Range It really depends on how you want to use it. This can be applied on multiple timeframes. Its a great way to visually see the trend of the market.