Dukascopy
 
 
Wiki JStore Search Login

Threads
 Post subject: Threads Post rating: 0   New post Posted: Tue 08 Apr, 2014, 17:59 
User avatar

User rating: 0
Joined: Fri 04 May, 2012, 08:50
Posts: 11
Location: Spain, Madrid
Hi all!

I'm working in a strategy. In this strategy i want to have 3 threads running ( one per instrument ). On every thread i'm submitting an order via engine.submitOrder()... In historical tester seems to work fine, but when i run on live, this instrucction give me an "incorrect thread" message...

Exist any limitation on jforex concerning this? or maybe it's a problem in my program??

thanks!


 
 Post subject: Re: Threads Post rating: 0   New post Posted: Tue 08 Apr, 2014, 20:00 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,
You have better chances of getting replies in the Automated Trading - Knowledgebase forum.

About your issue:
1) threading is not a problem. If you have some issues, show us the code, and the exact error message you got.
2) why do you want to submit orders in separate threads? 3 instruments can be handled withing the IStragety's own thread, without issues...


 
 Post subject: Re: Threads Post rating: 0   New post Posted: Wed 09 Apr, 2014, 11:06 
User avatar

User rating: 0
Joined: Fri 04 May, 2012, 08:50
Posts: 11
Location: Spain, Madrid
thanks, 'its just a "concept test" jejeje
I want to process each instrument in his own theard to test if is better in case i have several ticks at the same time making this parallel...


 
 Post subject: Re: Threads Post rating: 0   New post Posted: Mon 14 Apr, 2014, 14:28 
User avatar

User rating: 0
Joined: Fri 04 May, 2012, 08:50
Posts: 11
Location: Spain, Madrid
Hi,
finally, I think the best to implement the execution of threads is to use the functionality offered by the JForex https://www.dukascopy.com/wiki/#Threading. I was using the standard java because i dont known about this! ...


 

Jump to:  

cron
  © 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