SuperTrend Strategy
Nov 4, 2019

The SuperTrend Strategy tool provides a simplified trend-following framework designed to identify market direction and execute entries based on volatility-adjusted support and resistance levels.
Usage
The SuperTrend Strategy is primarily used to identify trend reversals and ride momentum in trending markets. When the price crosses above the trailing stop line, the strategy initiates a long position, signaling a bullish trend. Conversely, when the price drops below the trailing stop, it initiates a short position, signaling a bearish trend.
Users can apply this strategy to various timeframes and assets. It is particularly effective in markets with sustained movements, helping traders stay in a position until a clear reversal is detected by the ATR-based logic.
Details
The script utilizes the Average True Range (ATR) to calculate a dynamic trailing stop. By multiplying the ATR by a user-defined factor and subtracting/adding it from the median price (HL2), the indicator creates a buffer that accounts for market volatility.
The logic includes a "locking" mechanism where the long stop can only move upward and the short stop can only move downward during their respective trends. This ensures that the profit-taking or exit levels tighten as the market moves in the intended direction, preventing premature exits during minor price fluctuations.
Settings
- ATR Period: Defines the lookback period used to calculate the Average True Range. A higher value results in a smoother, less reactive line.
- ATR Multiplier: Determines the distance of the stop loss from the price. Increasing this value makes the strategy more conservative by requiring larger price swings to trigger a reversal.
- Show Buy/Sell Labels ?: Toggles the visibility of "Buy" and "Sell" labels on the chart for easier visual identification of entry points.
FAQ
How do I interpret the colored lines?
The green line represents a bullish trend where the indicator acts as dynamic support. The red line represents a bearish trend where the indicator acts as dynamic resistance.
Can I use this for automated trading?
Yes, the script includes built-in strategy commands and alert conditions for "Buy Signal" and "Sell Signal" which can be used to automate executions or receive notifications.
How can I access SuperTrend Strategy?
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.