Someone ask me recently about the HalfTrend indicator translation from the mq4 codes. I remembered having already translated it and made different kind of variations of this neat indicator. You can find them all attached to this post. You’ll find below screenshots examples of these different versions of this trend indicator:
The HalfTrend indicator is made upon trend direction of simple moving average that breach recent highest high or lowest low.
1/ HalfTrend “classic”:
2/ HalfTrend “custom moving average” with Heikin Ashi candlesticks set to true or false (normal candlesticks). You can select different kind of moving average to render the indicator differently.
3/ HalfTrend JMA. Same indicator but with Jurik moving average calculation instead of simple moving average.
4/ HalfTrend triple. Same indicator but made with 3 different HalfTrend periods in the same indi.
5/ HalfTrend adaptive length. Same indicator but with an adaptive amplitude calculation made with counting of recent high/low fractals. Many fractals count in the lookback period mean price is ranging.
6/ HalfTrend Quantile Bands. The quantile bands are calculated within the last upper and lower quantiles of X periods. Parameters could be changed at will.