PROTECTED SOURCE SCRIPT

stelaraX - Pivot Supertrend

27
stelaraX – Pivot Supertrend

stelaraX – Pivot Supertrend is a trend-following indicator designed to combine pivot-based structure with ATR volatility filtering. It builds a dynamic trend line around a pivot-derived center and flips direction when price crosses the active trend boundary, providing clear bullish and bearish regime signals.

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

Core logic

The script first derives a structural centerline from confirmed pivot highs and pivot lows, then applies ATR-based bands around that center. A trailing trend line is maintained by selecting the appropriate band and enforcing one-directional movement until a flip occurs.

Key principles:

* pivot highs/lows define structural reference points (confirmed with a lookback delay)
* a smoothed centerline is built from pivots to reduce noise
* ATR measures volatility and defines adaptive band distance
* upper and lower bands are calculated as center ± ATR factor
* trend direction is determined by price relative to the prior trend line
* the trend line trails using max/min logic to avoid reversing prematurely
* signals trigger when direction flips from bearish to bullish or bullish to bearish

This creates a structure-aware Supertrend variant that adapts both to volatility and swing context.

Visualization

The script plots:

* the Pivot Supertrend line directly on the price chart
* dynamic color changes for bullish and bearish regimes
* a center reference line displayed as subtle circles
* buy and sell markers at confirmed direction flips
* alert conditions for bullish and bearish flip events

This layout offers a clean, rule-based view of trend state and transitions.

Use case

This indicator is intended for:

* identifying trend direction and regime changes
* trailing stops and trade management in trending markets
* filtering entries using structure + volatility confirmation
* reducing whipsaws compared to pure ATR trend tools
* supporting systematic trend-following and AI-assisted chart evaluation

It performs best in directional markets and can be paired with momentum filters or structure tools for higher confidence setups.

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.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。