All i did was take out the SMA's and replace them with HMA's. is a more responsive moving average.
This is a derivative of John Carter's "TTM Squeeze" indicator, as discussed in his book "Mastering the Trade" (chapter 11).
Black crosses on the midline show that the market just entered a squeeze ( are with in Channel). This signifies low , market preparing itself for an explosive move (up or down). Gray crosses signify "Squeeze release".
Mr.Carter suggests waiting till the first gray after a black cross, and taking a position in the direction of the momentum (for ex., if momentum value is above zero, go long). Exit the position when the momentum changes (increase or decrease --- signified by a color change). My (limited) experience with this shows, an additional indicator like / WaveTrend, is needed to not miss good entry points. Also, Mr.Carter uses simple , while I have used a different method (linreg based) to plot the histogram.
- Book: Mastering The Trade by John F Carter
Here is the original version:
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
turns out HMA is built into the version 4 pinescript