Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Is all of the Orders cached?
 Post subject: Is all of the Orders cached? Post rating: 0   New post Posted: Sun 03 Oct, 2010, 07:42 

User rating: 0
Joined: Tue 28 Sep, 2010, 02:12
Posts: 6
Hi Support,
I am using the JForex in a single JAR.

I need to access all of the orders in OnBar()/OnTick(). I do NOT want to increase network access to Server.

But I found it's a bit slow. So can u please explain this?

BR
K


 
 Post subject: Re: Is all of the Orders cached? Post rating: 0   New post Posted: Tue 05 Oct, 2010, 08:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
What is slow? What are you doing? What kind of access do you need in onBar/onTick? Is it historical or engine.getOrders()?


 
 Post subject: Re: Is all of the Orders cached? Post rating: 0   New post Posted: Tue 05 Oct, 2010, 14:53 

User rating: 0
Joined: Tue 28 Sep, 2010, 02:12
Posts: 6
Hi Support,
I used engine.getOrders().

BTW, I found another problem just now.
if I keep JForex Client running, and Then start my client, Then there will be twice OnBar() event with the Same parameter(Period, Instrument etc) at the same time.

Is this correct?

Thanks


 
 Post subject: Re: Is all of the Orders cached? Post rating: 0   New post Posted: Thu 07 Oct, 2010, 09:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please describe this issue step by step, so that we could repeat it.
You could run 10 clients at same time with the same account, but OnBar()/OnTick() will be called only once for each instrument and bar/period, that platform is subscribed for.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com