Clean Trendline ELITE (3 Touch + Strength)**Clean Trendline ELITE (3 Touch + Strength Filter)**
This indicator automatically detects and draws high-quality trendlines using a strict 3-touch validation model combined with a dynamic strength scoring system. It is designed to replicate how experienced traders identify clean, respected trendlines while filtering out noise and weak structures.
The script identifies pivot highs and lows using a configurable pivot length, then constructs trendlines only when three consecutive points form a valid trend (higher lows for uptrends, lower highs for downtrends). The second pivot must align closely with the projected trendline, ensuring true geometric confirmation rather than just sequential pivots.
A built-in strength scoring system evaluates each trendline based on alignment accuracy, slope strength, and structural consistency. Users can define a minimum score threshold to filter out weaker trendlines, allowing only the most reliable setups to be displayed.
The indicator also includes a toggle to switch between wick-based and body-based calculations. Wick mode captures precise market extremes, while body mode provides cleaner, noise-reduced trendlines based on candle bodies.
Breakout signals are generated when price decisively moves beyond a validated trendline, using an ATR-based tolerance to reduce false signals caused by minor price fluctuations.
**Key Features:**
* Automatic 3-touch validated trendline detection
* Strength scoring system to filter high-quality trends
* Wick vs body mode toggle for flexible analysis
* ATR-based tolerance for realistic touch and breakout detection
* Clean breakout signals with optional alerts
* Minimal, clutter-free chart design
This tool is ideal for traders who want objective, rule-based trendline analysis without the subjectivity of manual drawing.
Pine Script® indicator






















