indicator · own pane · open source
Trend Intensity
Running…
Loading chart…
About
Trend Intensity is the ratio of net move over len bars to the sum of all bar moves, expressed as a percentage. High values = clean directional trend; low values = noisy chops.
- Reads above ~33 = trending, below ~15 = messy.
- Use as a filter for breakout entries — only take them when intensity is rising.
Source code
//@version=5
indicator("Trend Intensity", overlay=false)
len = input.int(30, "Length", minval=2)
ti = math.abs(close - close[len]) / math.sum(math.abs(ta.change(close)), len) * 100
hline(33, "Trending", color=color.green, linestyle=hline.style_dashed)
hline(15, "Choppy", color=color.red, linestyle=hline.style_dashed)
p_Trend_Intensity = plot(ti, "Trend Intensity", color=color.purple, linewidth=2)
alertcondition(ta.crossover(ti, 33), "Trend intensity up", "Trend intensity crossed above 33 — trending")
alertcondition(ta.crossunder(ti, 15), "Trend intensity down", "Trend intensity dropped below 15 — choppy")
No comments yet.
Sign in to comment.