OPEN-SOURCE SCRIPT
Arithmetic Candles with Pivot Trend Signals

📘 Script Description
🕯️ Arithmetic Candles
Instead of using traditional candlesticks, this script calculates:
Arithmetic Open = Average of open and close
Arithmetic Close = Average of high and low
This candle provides a smoother, more averaged-out representation of price action.
Benefit: Filters out noise and reveals a more "true" price midpoint per candle.
🧭 Pivot Point Levels (Classic)
Classic pivot levels are calculated using the previous day's values:
Pivot (P) = (High + Low + Close) / 3
R1 / S1: First resistance/support levels
R2 / S2: Extended resistance/support levels
These lines mark key price levels that often act as support or resistance.
📈 Trend Signals
The script generates trend signals when a selected price source crosses above or below the pivot:
Bullish Signal (green arrow): When price crosses above the pivot
Bearish Signal (red arrow): When price crosses below the pivot
You can choose the signal source:
Either the regular close price
Or the Arithmetic Candle midpoint: (arithOpen + arithClose) / 2
🎨 Visual Representation
Candles are colored green when arithClose > arithOpen, otherwise red
Pivot lines are drawn if enabled
Triangles mark trend change signals (bullish or bearish)
✅ Use Case
In sideways markets, Arithmetic Candles help filter out noise
Pivot Levels provide clear price zones for potential breakouts or reversals
🕯️ Arithmetic Candles
Instead of using traditional candlesticks, this script calculates:
Arithmetic Open = Average of open and close
Arithmetic Close = Average of high and low
This candle provides a smoother, more averaged-out representation of price action.
Benefit: Filters out noise and reveals a more "true" price midpoint per candle.
🧭 Pivot Point Levels (Classic)
Classic pivot levels are calculated using the previous day's values:
Pivot (P) = (High + Low + Close) / 3
R1 / S1: First resistance/support levels
R2 / S2: Extended resistance/support levels
These lines mark key price levels that often act as support or resistance.
📈 Trend Signals
The script generates trend signals when a selected price source crosses above or below the pivot:
Bullish Signal (green arrow): When price crosses above the pivot
Bearish Signal (red arrow): When price crosses below the pivot
You can choose the signal source:
Either the regular close price
Or the Arithmetic Candle midpoint: (arithOpen + arithClose) / 2
🎨 Visual Representation
Candles are colored green when arithClose > arithOpen, otherwise red
Pivot lines are drawn if enabled
Triangles mark trend change signals (bullish or bearish)
✅ Use Case
In sideways markets, Arithmetic Candles help filter out noise
Pivot Levels provide clear price zones for potential breakouts or reversals
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.