Auto TrendLine Pro

Most indicators draw too many lines, making the chart messy and confusing. This engine solves that by filtering out the "noise." It hunts for mathematically precise connections between market pivots. It gives you a clean view of the strongest Support and Resistance levels that the market is actually respecting.
Menu Options Explained
Here is how you can control the indicator using the settings menu:
1. Swing Length
This setting controls the "eyes" of the engine—how it finds the Highs and Lows.
Swing Length determines how far back the engine looks.
- Small numbers (1 or 2): It finds more short-term swings.
- Big numbers(3 to 10): It ignores small moves and only looks for major market turns.
2. Trendline Strength
This shows how strong the trendline is. 1 is a good score for a valid trendline. If you increase this number you will get stronger trendlines.
3. Touch Threshold
How strict should the engine be?
- Low value: Very strict. Price must touch the line perfectly.
- High value: More relaxed. Near-misses are counted as touches.
4. Breakout Threshold
This prevents false alarms. If a candle wick pokes through the line just a little bit but closes back inside, this setting tells the engine to ignore it and keep the trendline alive.
5. Source
This controls where a trendline starts.
- Wick: The line must start at the very tip of the candle's Wick (High/Low). This usually gives the most precise touches.
- Body: The line starts from the candle's Body (Close). This is usually recommended for line charts.
- Best Match(Recommended): The engine tries both and picks the one that fits the math better.
6. Display Mode
This controls how many lines you see on the screen.
- Oldest Line: Shows only the single best Support and Resistance line.
- Recent Lines: Shows the top 2 or 3 best lines.
- Only Specific Line: Shows only a specific line(e.g., only the 2nd best line).
7. Lines to Display
This option controls exactly how many trendlines appear on your chart at the same time, such as showing only the single oldest line or the top 3. It helps declutter your view by hiding weaker lines so you can focus only on the most critical support and resistance levels.
Trendline Types:
1. Confirmed Trendlines
These are solid, established lines that have been tested by price enough times to be locked in as reliable barriers. Unlike live lines, they are permanent and will not disappear or move, providing a trustworthy reference for Support and Resistance.
2. Live Trendlines
These are tentative lines that have just started to form but have not been fully confirmed yet. They show you potential setups early, but they are risky because they might disappear if the price invalidates them before they become strong.
3. Broadening Trendlines
Broadening Trendlines open up wider like a Loudspeaker as they move forward, instead of squeezing together like a normal triangle.
4. Freeze on Live
This option stops the trendlines from moving or flickering while the current candle is still forming. The lines will only update once the candle finishes and closes, keeping your chart stable. Trade-off: You are sacrificing Real-time Reaction to get Stability.
Breached Trendlines, Visuals and Alerts are self Explanatory.
Future updates will have lots of other features.
⚠️ DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results. Use at your own risk.
© Auto TrendLine Pro - All rights reserved. Copying, redistribution, or reverse-engineering is prohibited without written consent.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Stable_Logic directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Stable_Logic directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.