超級趨勢 (SuperTrend)
Oct 26, 2019

The 超級趨勢 (SuperTrend) indicator is a trend-following tool designed to identify the direction of market momentum and provide clear entry or exit signals based on price volatility.
Usage
The indicator is primarily used to determine the current market trend and establish potential stop-loss levels. When the price is above the indicator line, the trend is considered bullish (green), and when the price is below the line, the trend is considered bearish (red).
- Trend Identification: Use the color-coded lines and labels ("多" for long, "空" for short) to identify the prevailing market direction.
- Trailing Stop Loss: The plot serves as a dynamic trailing stop-loss level. Traders can adjust their risk management by following the line as price moves in their favor.
- Entry Signals: Labels appear when a trend change is detected, signaling a potential shift in momentum.
It is recommended to avoid chasing price movements if a signal is missed and to manage leverage carefully, as SuperTrend can perform poorly in sideways or range-bound markets.
Details
This implementation is based on the original SuperTrend concept developed by Olivier Seban. It utilizes the Average True Range (ATR) to calculate a volatility-based offset from the median price (HL2).
- Calculation: The indicator calculates upper and lower bands based on the ATR multiplied by a specific factor. The "stop" line only moves in the direction of the trend and stays flat or tightens, preventing the stop-loss from widening against the trader's position.
- Refinement: This version includes optimized alerts and visual enhancements to provide a cleaner charting experience.
Settings
- 數據來源 (Source): Determines the price data used for the calculation (default is Close).
- ATR 周期 (ATR Period): The lookback period used for the Average True Range calculation.
- ATR 乘數 (ATR Multiplier): The multiplier applied to the ATR to determine the distance of the stop-loss line from the price.
- Visuals: Users can toggle the visibility of the trailing stop lines, labels, and bar coloring.
FAQ
How do I use the 超級趨勢 (SuperTrend) as a stop loss?
You can use the green or red lines as a dynamic trailing stop. As the price moves in your favor, the line will follow, allowing you to lock in profits while giving the trade room to breathe.
What are the weaknesses of this indicator?
The indicator may produce false signals in non-trending or "choppy" markets. Additionally, depending on the ATR settings, the distance to the stop loss can sometimes be significant.
How can I access this script?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.