OPEN-SOURCE SCRIPT
Updated

Tri-Trend Confluence | SuperTrend x3 + ADX Filter

2 132
A trend-following system that only fires when three independently-tuned SuperTrend lines (fast/medium/slow) agree on direction — filtered by ADX trend strength.
How it works
Three SuperTrends (fast, medium, slow) vote on trend direction. Choose your consensus mode: require all three to agree, a 2-of-3 majority, or a fast-trigger + slow-confirm setup. Entries also require ADX above a configurable strength threshold (with an optional "ADX must be rising" filter), keeping you out of range-bound grinds where SuperTrend alone tends to whipsaw.
Features
  • 3 independently configurable SuperTrend lines
  • ADX strength + rising filter
  • Volume confirmation filter
  • Higher-timeframe trend filter (via request.security)
  • ATR-based position sizing — risks a fixed % of equity per trade, sized off the actual stop distance
  • Enforced intrabar stop at the slow SuperTrend line
  • Visual trend cloud + ADX strength gradient background for at-a-glance read
  • Backtested with realistic costs
  • Default settings include 0.05% commission and 2-tick slippage baked in. Adjust the commission/slippage inputs to match your specific broker/exchange before trusting results for your own execution venue.

Tips for use
  • Test each filter independently before stacking them
  • The "All Agree" entry mode is the most conservative (fewer, higher-conviction trades); "Majority (2/3)" trades more often at the cost of some precision.
  • This is a trend-following system — expect it to underperform in sideways/choppy markets even with filters on, and to shine during sustained directional moves.
  • Not financial advice — backtest on your own instruments/timeframes before risking capital.
Release Notes
Edited thumbnail and title of script
Release Notes
Updated chart and added comments
Release Notes
Image update, comment refinement

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.