PROTECTED SOURCE SCRIPT

Auto Trendlines [RG]

200
Auto Trendlines [RG]

Overview

Auto Trendlines automatically identifies, draws, and manages dynamic support and resistance trendlines based on pivot points. It continuously monitors price action to validate and update trendlines.

Key Features

Automatically identifies support (green) and resistance (red) trendlines
Validates trendlines against historical price action
Configurable lookback period and maximum active lines
Clean visualization with customizable line widths

How It Works

The indicator detects pivot highs and lows using your specified lookback period
It connects consecutive pivots to create potential trendlines
Lines are extended to the right until a confirmed price break
Older lines are automatically removed when the maximum is reached

Customization Options

Lookback Period: Controls the sensitivity of pivot detection
Maximum Active Lines: Limits the number of trendlines displayed
Line Width: Separate width controls for support and resistance lines

Ideal For

Identifying dynamic support and resistance levels.
Spotting potential reversal zones.


This indicator will help you identify trendlines, which you can then sophisticate and redraw more accurately. Please use this indicator only to identify trendline scenarios. Keep in mind that this is not a buy and sell indicator. Trendline breaks and bounces are not always respected, as prices can turn around at any moment. Happy Trading :)

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.