OPEN-SOURCE SCRIPT

Candle Price Movement

This Pine Script indicator calculates and visualizes the price movement for each candlestick on the chart.

- **Calculation**: The price movement for each candle is determined by subtracting the opening price from the closing price.

- **Visualization**: The price movement is plotted as a histogram, with positive values indicating upward movement (green bars) and negative values indicating downward movement (red bars).

- **Options**:
- The histogram bars are colored blue with zero opacity, providing a clear visual distinction from the background.
- A horizontal line at zero (the "Zero Line") is added for reference, helping to identify periods of no price movement.

---

This indicator provides traders with a quick visualization of the price movement for each candlestick, helping to identify trends and potential trading opportunities.
Candlestick analysisChart patternsMoving Averages

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer