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.

Strategy thread queue overloaded with tasks
 Post subject: Strategy thread queue overloaded with tasks Post rating: 0   New post Posted: Tue 22 Nov, 2016, 14:40 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Hi,

I have a strategy that when I run it, I get messages of this kind:

"
Strategy thread queue overloaded with tasks. Ticks in queue - 101, bars - 1376, other tasks - 454
"

And it's stops pretty soon after. However, it's not very different from other strategies I run where a thing like that never happens.

Do you know the cause for that?

Thanks


 
 Post subject: Re: Strategy thread queue overloaded with tasks Post rating: 0   New post Posted: Fri 25 Nov, 2016, 15:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This happens when running onTick() takes too long. One way to fix this is to move the logic to onBar() method.
Usually, history and indicator calls take more time.


 
 Post subject: Re: Strategy thread queue overloaded with tasks Post rating: 0   New post Posted: Sun 27 Nov, 2016, 12:08 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Thanks


 

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