ZigZag Chart with Supertrend
Sep 30, 2021

The ZigZag Chart with Supertrend indicator provides a unique visualization that constructs a "timeless" chart based on ZigZag waves, allowing traders to focus on price movement rather than time intervals. By representing each ZigZag wave as a distinct candle, this tool helps identify trends and reversals more clearly while optionally overlaying Supertrend or Moving Average metrics.
Usage
The indicator can be used to filter out market noise by focusing on significant price swings. Each candle on the chart represents a completed ZigZag wave, with wicks indicating the price extremes during that period.
- Trend Identification: Traders can use the integrated Supertrend to identify the current directional bias based on the ZigZag candles.
- Support & Resistance: The ZigZag peaks and troughs naturally form support and resistance levels on this reconstructed chart.
- Volatility Analysis: By adjusting the ATR parameters, users can fine-tune the Supertrend sensitivity to match the volatility of the specific asset being traded.
- Visual Confirmation: The option to color the main chart bars based on the ZigZag Supertrend provides a clear signal for trend-following strategies.
Details
Unlike standard time-based charts, this indicator reconstructs the price action using arrays to store and shift ZigZag wave data. Each wave's start and end prices are used to form the "Body" of a new candle, while the highest and lowest prices reached during that wave form the "Wicks." This results in a chart where the X-axis represents wave count rather than time. The Supertrend and Moving Average calculations are then performed on these synthesized candles rather than the underlying price data, providing a smoother trend analysis.
Settings
- ZigZag Period: Determines the sensitivity of the ZigZag wave detection. Lower values create more frequent candles, while higher values focus on larger price swings.
- Show: Select between "Supertrend" or "Moving Average" to be calculated and displayed over the ZigZag candles.
- MA Length: Sets the lookback period for the Simple Moving Average (applicable when MA is selected).
- ATR Length: Sets the lookback period for the Average True Range used in the Supertrend calculation.
- ATR Multiplier: Adjusts the distance of the Supertrend line from the price; a higher multiplier results in a less sensitive trend line.
- Colors: Options to customize body and wick colors for both bullish and bearish ZigZag candles.
- Change Bar Color by Supertrend: When enabled, the bars on the primary chart will change color to match the direction of the ZigZag Supertrend.
FAQ
How do I access this indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why does the X-axis look different?
Because this is a timeless chart, each "bar" represents one ZigZag wave completion rather than a specific time increment (like 5 minutes or 1 day).
Can I use this for intraday trading?
Yes, the indicator is effective across various timeframes as it adapts its candle construction based on the price volatility defined by the ZigZag Period setting.
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.