|
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? |
[hziee]
|
Post subject: Is all of the Orders cached? |
Post rating: 0
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: Is all of the Orders cached? |
Post rating: 0
|
Posted: Tue 05 Oct, 2010, 08:38
|
|
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()?
|
|
|
|
 |
[hziee]
|
Post subject: Re: Is all of the Orders cached? |
Post rating: 0
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: Is all of the Orders cached? |
Post rating: 0
|
Posted: Thu 07 Oct, 2010, 09:24
|
|
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|