My current data provider is BarChart. There are often minor discrepancies between intraday-data and day-data. For instance on Friday (Aug 31, 2018) AMZN had the following open data:
On a 1-day chart, the open was: $2007.00
On a 15-minute intraday chart, the open was: $2009.82
To illustrate the difficulty I’m having, I’ve written a sample indicator that plots the current day’s open on an intraday chart. The indicator has one additional data series in addition to the chart series (see attachment for indicator):
AddDataSeries(BarsPeriodType.Day, 1); //Day Data. Opens[1][x], Highs[1][x], etc.
On days where there is no discrepancy between day and intraday data, the solution is to use CurrentDayOHL(BarsArray[0]).CurrentOpen[0]; However on days when there are discrepancies between day and intraday data, is there any way to retrieve the open price as shown on a day-bar chart, and use that data for plotting values on an intraday chart?
Please see attachments for clarification and the indicator.
Comment