OPEN-SOURCE SCRIPT
stelaraX - Supertrend

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.
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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน