BEST Supertrend MA
Jan 14, 2020

The BEST Supertrend MA indicator provides a trend-following framework that combines moving average crossovers with dynamic Supertrend volatility bands to identify momentum shifts and potential support/resistance levels.
Usage
The tool is primarily used to identify trend direction and potential entry/exit points through the interaction of two moving averages and a volatility-adjusted baseline. A bullish event is triggered when the fast moving average (MA1) crosses above the slow moving average (MA2), while a bearish event occurs when the fast moving average crosses below the slow.
Unlike a standard Supertrend that relies on price closing above or below a level, this version anchors its trend state to these MA crossovers. Traders can use the plotted Supertrend line as a dynamic trailing stop or a visual confirmation of the current trend regime. The use of ohlc4 for the calculation offers a more balanced perspective of the price action compared to using only the closing price.
Details
The indicator calculates a trend line based on the Average True Range (ATR) and a multiplier (Factor). When a bullish crossover is detected, the script plots a "Trend Up" level calculated as ohlc4 - ATR * Factor. Conversely, a bearish crossunder triggers a "Trend Down" level at ohlc4 + ATR * Factor.
The implementation allows for significant flexibility by offering 10 different moving average types, including:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Hull Moving Average (HullMA)
- Double and Triple Exponential Moving Averages (DEMA/TEMA)
- Volume Weighted Moving Average (VWMA)
Settings
- Source: The price source used for moving average calculations.
- Type of Moving Average 1 & 2: Selects the smoothing method (e.g., SMA, EMA, HullMA) for the fast and slow averages.
- Length of Moving Average 1 & 2: Sets the lookback period for the crossover detection.
- Factor: The multiplier used with the ATR to determine the distance of the Supertrend line from price.
- PD: The lookback period for the Average True Range (ATR) calculation.
FAQ
How do I interpret the triangle shapes on the chart? The up triangles represent a bullish crossover where the fast MA moves above the slow MA, while down triangles represent a bearish crossunder.
Can I change the sensitivity of the Supertrend line? Yes, by adjusting the "Factor" and "PD" settings, you can make the line more reactive to short-term volatility or more stable for long-term trends.
How can I access this tool? 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.