Acceleration/Deceleration Indicator (AC). These indicators were invented by Bill M. Williams, and are described in his book, New Trading Dimensions: How to Profit from Chaos in Stocks, Bonds, and Commodities.
Enjoy:)
Enjoy:)
study(title="Acceleration/Deceleration", shorttitle="AC") ao = sma(hl2,5) - sma(hl2,34) ac = ao - sma(ao,5) plot(ac, color = change(ac) <= 0 ? red : green, style=histogram)