Plot Real Open and Close - SamX

SamAccountX Updated   
I built this indicator as a personal request from a friend. He often trades using Heiken Ashi charts, but wanted a way to easily cross-reference real-price open and close values for the same timeframe on the same chart (as HA candles are by design lagging, they can take a few periods to catch up to a large move). This can also be used to help guide support and resistance zones using real-price data points should you so choose.

There are 2 major ways to configure this indicator to display real-price open and close:
  • As a Bar or Hollow Candle style chart overlay
  • As on-chart shapes (allowing individual control over which data to show - open, close, or both)
Release Notes:
Added the ability to plot an updating line tracking current real price.
Release Notes:
Added option to extend the live-price line indefinitely to the left as well.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.


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.

Want to use this script on a chart?