Skip to content
All library documents

Pivot Percentile Trend Signals Combined with a SuperTrend Filter

Article TradingView scripts

Summary

This strategy builds a directional strength measure from rolling percentiles of market highs and lows. It compares several lookback windows with longer-window high and low percentile reference levels, counting strong and weaker bullish or bearish conditions. Those counts are combined into a trend value. A SuperTrend calculation is then applied to that value, and trades are entered when the percentile-derived direction agrees with the SuperTrend direction; an opposing signal closes the existing side. The script allows long-only, short-only, or two-sided operation.

The document explains the indicator components and gives implementation settings, including percentile levels, lookback construction, and SuperTrend parameters. It also includes promotional descriptions and example chart references, but the supplied text does not establish performance with a documented backtest or statistical analysis. The code’s length array assignments appear to overwrite two intermediate entries, so its actual percentile windows may differ from the described consecutive sequence. Results will depend on configuration, asset, and timeframe.

Key ideas

  • Rolling high and low percentiles across multiple windows produce bullish, bearish, and weaker trend counts.
  • The counts are combined into a signed trend strength value.
  • A SuperTrend applied to that value supplies a second directional filter for entries and exits.
  • The strategy supports long, short, or two-sided trading through a direction setting.
  • The document supplies no rigorous performance evidence, and its window assignments may not match the prose description.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.