OPEN-SOURCE SCRIPT

stelaraX - Supertrend

50
stelaraX – Supertrend

stelaraX – Supertrend is a trend-following indicator based on the Average True Range (ATR). It dynamically adapts to market volatility and provides clear visual guidance for identifying bullish and bearish trend phases directly on the chart.

This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation.
stelarax.com


Core logic

The Supertrend is calculated using two user-defined parameters:

* ATR period
* volatility factor

The indicator uses ATR-based price bands to determine trend direction:

* bullish trend when price holds above the Supertrend level
* bearish trend when price holds below the Supertrend level

When price crosses the Supertrend line, the trend direction flips accordingly. The ATR factor controls the sensitivity of trend changes, with higher values producing fewer but stronger signals.


Visualization

The script plots a single Supertrend line directly on the price chart:

* green color during bullish trends
* red color during bearish trends
* broken line style to clearly show trend transitions

The minimalist design ensures that trend direction is immediately visible without cluttering the chart.


Use case

This indicator is intended for:

* identifying and following market trends
* defining dynamic trailing stop levels
* filtering trades in the direction of the dominant trend
* trend confirmation in combination with other indicators

For traders looking to combine classical trend tools with modern AI-driven chart analysis, additional tools and insights are available at stelarax.com


Disclaimer

This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.