OPEN-SOURCE SCRIPT
Updated Tri-Trend Confluence | SuperTrend x3 + ADX Filter

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
Tips for use
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 scriptRelease Notes
Updated chart and added commentsRelease Notes
Image update, comment refinementOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.