HalfTrend [everget]

Published on MillionChart by Pipzen.

HalfTrend is a popular trend indicator built on ATR. It is similar in spirit to SuperTrend but uses its own logic to decide when the trend changes, so its signals and line placement differ.

What to expect:
- A trend line that flips between up and down states based on volatility and recent highs and lows.
- Signals when the trend changes direction.
- Volatility-adjusted behaviour, because ATR sets how far price must move before the state flips.

Author's note: the code is published openly without a licence restriction, and the author warns that paid scripts under other names may be built on it, advising traders to check before paying for something that is available for free.

Use it to follow the trend direction, or compare it with SuperTrend to see where the two agree.