Houston, TX
Posts: 5 since Jan 2015
Thanks Given: 0
Thanks Received: 1
|
Within an NT8 strategy, I am filling a class-level double array in a secondary series that has the same bars and same contract (5 min bars, NQ 09-19) as the primary series. I printed the array's values when BarsInProgress==2, and they are all valid. However, when BarsInProgress==1, the array is totally wiped out with zeroes. How can I set an array's value in another series that has exactly the same bars, and then retrieve them from within the primary without them getting zeroed out?
The reason for having two dataseries for the same asset and bars is because I can only call the indicators from the strategy on the last bar of the secondary series, since the computation is to expensive to perform on all values of the charts latest [0] value. Once the array values are filled, and a primary bar updates, I should be able to loop through all relevant bars in the primary OBU and trigger buy/sells.
|