|
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 |
Jameswter
|
Post subject: Strategy thread queue overloaded with tasks |
Post rating: 0
|
Posted: Tue 22 Nov, 2016, 14:40
|
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: Strategy thread queue overloaded with tasks |
Post rating: 0
|
Posted: Fri 25 Nov, 2016, 15:50
|
|
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.
|
|
|
|
 |
Jameswter
|
Post subject: Re: Strategy thread queue overloaded with tasks |
Post rating: 0
|
Posted: Sun 27 Nov, 2016, 12:08
|
|
User rating: 0
Joined: Tue 06 Sep, 2016, 11:04 Posts: 20 Location: United Kingdom,
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|