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.

StrageyThreadQueue overloaded
 Post subject: StrageyThreadQueue overloaded Post rating: 0   New post Posted: Sun 27 Feb, 2011, 12:54 

User rating: 0
Joined: Tue 22 Feb, 2011, 20:43
Posts: 10
Hi,

I'm getting this message, when market is closed (weekend), and strategy runs
during the weekend:

11:51:45 Strategy thread queue overloaded with tasks. Ticks in queue - 0, bars - 2883, other tasks - 784


I thought it means, that strategy is to slow in handling each tick, but on the weekend
there are no new ticks ???

Thx
DT


 
 Post subject: Re: StrageyThreadQueue overloaded Post rating: 0   New post Posted: Tue 01 Mar, 2011, 03:10 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
are you using concurrency in your strategy?


 
 Post subject: Re: StrageyThreadQueue overloaded Post rating: 0   New post Posted: Tue 01 Mar, 2011, 15:46 

User rating: 0
Joined: Tue 22 Feb, 2011, 20:43
Posts: 10
@quantisan: No, I only compute values for the COG-Indicator and then check some
entry conditions about crossing the COG-lines. If an order is in the market I manage
the open orders for reverse signals .... it is quite simple ... so I wonder abouht this
messages.

BTW: With API-Version 2.6.38 since this yesterday there are no new messages.
Maybe the team has fixed some errors?


 
 Post subject: Re: StrageyThreadQueue overloaded Post rating: 0   New post Posted: Wed 02 Mar, 2011, 08:17 

User rating: 0
Joined: Tue 22 Feb, 2011, 20:43
Posts: 10
Ok, new messages occured this night with new API-Version 2.6.38.
I looked at the code again and found some waitForUpdate() after
sending my order (incl. stop, profittarget).

Now I removed waitForUpdate() completeley and wait for new messages.

This thread overload issue is very, very hard to get and hard to program.
Other users get this issue too and I think support need something to clarify here ...


 
 Post subject: Re: StrageyThreadQueue overloaded Post rating: 0   New post Posted: Wed 02 Mar, 2011, 09:13 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
DarthTrader2 wrote:
11:51:45 Strategy thread queue overloaded with tasks. Ticks in queue - 0, bars - 2883, other tasks - 784

This message means that strategy thread can't process messages it receives. Most likely you block it in one of the IStrategy methods. If you have some lengthy jobs - start your own thread
DarthTrader2 wrote:
I thought it means, that strategy is to slow in handling each tick, but on the weekend
there are no new ticks ???

Yes, during the weekend the JForex platform doesn't receive tick, you can filter this days.


 

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