indicator · own pane · open source

Trend Intensity

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
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")

Comments

No comments yet.

Sign in to comment.