MN - Auto Trendline

๐ Definition
MN - Auto Trendline is a powerful multi-system technical tool designed to automatically detect and draw trendlines, support & resistance levels, and Fibonacci retracements on any chart and timeframe.
This script intelligently combines both traditional and advanced algorithms to visualize key market structures โ helping traders identify breakout zones, reversal points, and trend continuations without manual line drawing.
โจ Key Features
Dual Trendline Systems โ Combines both Original (swing-based) and Advanced (multi-pivot optimized) methods.
Automatic Support & Resistance Zones โ Detects and marks major swing-based levels dynamically.
Fibonacci Retracement Tool โ Auto-plots Fib retracements based on detected swing highs/lows.
Smart Violation Detection โ Identifies when a trendline or zone is broken.
Customizable Visuals โ Colors, widths, extensions, labels, and alerts are fully adjustable.
Alerts System โ Optional notifications when new pivots, supports, or resistances are formed or broken.
๐งญ Quick Preset Modes
Preset Description
Both Systems Enables both Original and Advanced trendline systems + S/R detection. (Default)
Original Only Uses the simple pivot-based trendline system.
Advanced Only Uses optimized multi-pivot detection for refined trendlines.
Support/Resistance Only Displays only Support and Resistance zones.
All Off Turns off all systems for a clean chart reset.
โ๏ธ User Toggles Explained
๐๏ธ Main Toggles
Original Trendlines โ Enables the base trendline system using pivot highs/lows.
Advanced Trendlines โ Enables smart multi-pivot trend detection.
Support & Resistance โ Enables automatic S/R zone plotting.
๐ Fibonacci Retracements
Enable Fib Retracements โ Turns on automatic Fibonacci plotting based on major swing points.
Labels show key retracement percentages (23.6%, 38.2%, 50%, 61.8%, etc.).
๐น Pivot Points
Pivot Length โ Controls how far the script looks for pivot confirmation.
Mark Pivots โ Displays small triangles at detected high/low pivots.
Alerts Enabled โ Sends alerts for new pivot formation.
๐ Original Trend Lines
Points to Check โ Number of pivots to analyze for trendline creation.
Maximum Violation โ Number of candle violations allowed before a trendline is marked as invalid.
Excepted Last Bars โ Excludes recent bars from validation (useful for live markets).
Show Violated Lines โ Optionally display broken trendlines in a faded style.
Line Extension โ Extends trendlines (Right, Left, Both, or None).
Show Labels โ Adds trendline price labels.
๐ฏ Advanced Trendlines
Pivot Length โ Defines the pivot calculation depth for advanced detection.
Max Pivots to Keep โ Limits the number of historical pivots considered.
Show Pivot Points โ Optionally visualize each pivot used for advanced line generation.
Line Width / Extension Bars โ Adjust trendline style and how far it extends into the future.
๐ก๏ธ Support & Resistance
Enabled โ Activates support/resistance zones.
Points to Check โ Determines how many pivot levels to use.
Maximum Violation Allowed โ Number of candles that can break a level before itโs removed.
Excepted Last Bars โ Skips very recent data to avoid premature zone formation.
Show Labels โ Displays support/resistance labels with price levels.
Alerts Enabled โ Sends alerts when price breaks above resistance or below support.
๐จ Visual Style
High Color / Low Color โ Custom color scheme for resistances, supports, and trendlines.
Line Width โ Controls the overall visual thickness of lines.
๐ข Alerts
The script supports multiple alert types:
New Pivot Detected
Trendline Violated
Support Broken
Resistance Broken
๐ก Tips
Works best on 15mโ1D timeframes for swing and positional trading.
Combine with RSI, volume, or price action for confirmation.
For intraday traders, reduce Pivot Length and Points to Check for faster updates.
๐ Credits
Developed by Muralitharan_n
License: Mozilla Public License 2.0
Skrip jemputan sahaja
Hanya pengguna yang diluluskan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Ini selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi terus Muralitharan_n.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diluluskan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Ini selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi terus Muralitharan_n.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.