I am having a bit of trouble with the AddDataSeries function.
I would like to be able to call smaller OHLC data within the each Bar. For example. I show a 20 minute chart and would like to get the minute opens within that bar and do some data computations.
so i start out with using the AddDataSeries(BarsperiodType.Minute,1);
When I try to run my code, where I try and call the Open[0], and print the result, it will show the 1 minute open of each minute bar instead of the higher time frame, 20 minute bar open. And I realise i'm having a hard time understanding how to implement what i want to do with this.
When I remove the addDataSeries the Open[0] works as it should, it shows the 20 current time frame's open instead of the minute bar opens. Can you help point me in the direction to how to accomplish my goals of getting the smaller time frame data within each bar.
Specifically I want the ability to pick each minute OHLC data within a single higher time frame bar (example 15 minute bar) and then reference the data to either other minute data or the higher time frame data (example. compare it to the previous bar open, or compare the second minute to the third minute of the completed bar).
Note I'm looking only at the most current completed bar, not a realtime bar. Thanks.
Comment