OPEN-SOURCE SCRIPT
Average Candle

Average Candle is a custom indicator that plots a synthetic candle built from the average open, high, low, and close of the last X periods, providing a smoother view of price behavior and trend. It helps filter noise by summarizing recent market action into a single, representative **candle** per bar.
1. Introduction
Average Candle calculates the simple moving average of each OHLC component (Open, High, Low, Close) over a user-defined lookback period and renders that as a separate candle on the chart.
This creates a smoothed representation of price that is less affected by short-term volatility while still respecting the overall structure of the market.
By visualizing these averaged candles, traders can better identify underlying direction and momentum without removing the original price bars.
2. Key features
- Uses the average of the last X opens, highs, lows, and closes to build a synthetic candle for each bar, allowing consistent smoothing across all OHLC components.
- Colors the Average Candle bullish or bearish based on whether the average close is above or below the average open, making directional bias visually clear at a glance.
- Can be overlaid on the main chart to compare raw price candles with their averaged counterpart, helping traders distinguish meaningful swings from short-term noise.
3. How to use
- Add the indicator to your chart, choose the desired lookback length (X periods), and tune it according to your trading timeframe and style—for example, shorter lengths for more responsive signals and longer lengths for smoother trends.
- Use the Average Candle to confirm trend direction, detect potential reversals, or validate entries and exits by checking whether price action aligns with the smoothed average structure.
- Combine it with other tools such as support/resistance, volume, or momentum indicators, ensuring it is used as a complementary visualization aid rather than a standalone signal generator.
1. Introduction
Average Candle calculates the simple moving average of each OHLC component (Open, High, Low, Close) over a user-defined lookback period and renders that as a separate candle on the chart.
This creates a smoothed representation of price that is less affected by short-term volatility while still respecting the overall structure of the market.
By visualizing these averaged candles, traders can better identify underlying direction and momentum without removing the original price bars.
2. Key features
- Uses the average of the last X opens, highs, lows, and closes to build a synthetic candle for each bar, allowing consistent smoothing across all OHLC components.
- Colors the Average Candle bullish or bearish based on whether the average close is above or below the average open, making directional bias visually clear at a glance.
- Can be overlaid on the main chart to compare raw price candles with their averaged counterpart, helping traders distinguish meaningful swings from short-term noise.
3. How to use
- Add the indicator to your chart, choose the desired lookback length (X periods), and tune it according to your trading timeframe and style—for example, shorter lengths for more responsive signals and longer lengths for smoother trends.
- Use the Average Candle to confirm trend direction, detect potential reversals, or validate entries and exits by checking whether price action aligns with the smoothed average structure.
- Combine it with other tools such as support/resistance, volume, or momentum indicators, ensuring it is used as a complementary visualization aid rather than a standalone signal generator.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.