Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Update data and put it in the array in the thread
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=77&t=52830
Page 1 of 1

Author:  saintauba [ Wed 17 Jun, 2015, 17:11 ]
Post subject:  Update data and put it in the array in the thread

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

Author:  tcsabina [ Mon 22 Jun, 2015, 10:03 ]
Post subject:  Re: Update data and put it in the array in the thread

Hi,

What exactly are you trying to download?
What errors do you have?
Could you show the strategy itself?


Also, there is the Historical Data Feed available for download. Maybe this is good enough for you?

Author:  saintauba [ Sat 11 Jul, 2015, 09:11 ]
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.

  Page 1 of 1