Hi at all, I try to download data as it arrives and put it in the vector or arrayList for a list FIFO. I use IStrategy interface , onBar and askBar.getClose() methods, ONE_Min or other period. I can't. Is it possible? Best regards
tcsabina
Post subject: Re: Update data and put it in the array in the thread
Thank you for your answer, I don't at home for a long time so I'm not read your post. I try to stock live data for any instrument and period. ONE_MIN or FIVE_MIN for example. I need to load data (open, close, high and low) as they arrive and put them in a FIFO for calculation. I can get them in a first time but I can't use again. I need to put close for example in list FIFO two elements (close1, close2) and replace them as they arrive after put in the array. I think I have to use Thread for a result. I don't use historical data because I need live data. Best regards.