indicator · own pane · open source
Trend Intensity indicator
Trend Intensity is a free open-source indicator by @deepwick. Trend Intensity is the ratio of net move over len bars to the sum of all bar moves… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Trend Intensity does
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
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Trend Intensity", overlay=false)
len = input.int(30, "Length", minval=2, maxval=200)
colorBg = input.color("color.purple", "Color Bg")
colorUp = input.color("color.green", "Color Up")
colorDown = input.color("color.red", "Color Down")
ti = math.abs(close - close[len]) / math.sum(math.abs(ta.change(close)), len) * 100
hline(33, "Trending", color=colorUp, linestyle=hline.style_dashed)
hline(15, "Choppy", color=colorDown, linestyle=hline.style_dashed)
p_Trend_Intensity = plot(ti, "Trend Intensity", color=colorBg, 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.