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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.