binwang2
09-17-2009, 01:44 PM
Hi NT experts,
For the same instrumnet with different time frames, I assume Opens[i][GetBar(datetime)] is enough to specify Open price of data series i at datatime.
However, I found I need to specify both BarsInprogress == i and Opens[i][GetBar(datetime)] in order to pin down the value. Otherwise, the Open[i][GetBar(datetime)] changes over time if i is not primary dataseries 0.
I am not sure if that has to be the case. I think the very reason to have Opens vs Open is to specify dataseries. I might have missed something.
Any comments are welcome.
For the same instrumnet with different time frames, I assume Opens[i][GetBar(datetime)] is enough to specify Open price of data series i at datatime.
However, I found I need to specify both BarsInprogress == i and Opens[i][GetBar(datetime)] in order to pin down the value. Otherwise, the Open[i][GetBar(datetime)] changes over time if i is not primary dataseries 0.
I am not sure if that has to be the case. I think the very reason to have Opens vs Open is to specify dataseries. I might have missed something.
Any comments are welcome.