|
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.
Message that i dont understand |
jaime_1008
|
Post subject: Message that i dont understand |
Post rating: 0
|
Posted: Sun 15 Feb, 2015, 20:28
|
|
User rating: 1
Joined: Sun 18 Dec, 2011, 04:05 Posts: 36 Location: Spain, Madrid
|
Hi all,
I have several strategies running in demo accounts, some in local computre and the other in remote.
In local strategies I have the following message that I don't know if there is something wrong with the coding or with the PC performance (maybe because have several platform open at the same time):
Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 670, other tasks -4 Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 670, other tasks -4 Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 670, other tasks -4 Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 670, other tasks -4 Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 670, other tasks -4 Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 536, other tasks -0 Strategy thread queue overloaded with tasks. Ticks in queue -3, bars - 536, other tasks -0
The numbers change.
When showing this message, sometimes the strategy stops and other don't. Why? Is this because of coding java or something with the computer performance?. In fact, I don't have these message on remote strategies.
Thank you and best regards
|
|
|
|
 |
API Support
|
Post subject: Re: Message that i dont understand |
Post rating: 0
|
Posted: Mon 16 Feb, 2015, 11:25
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
This happens if strategy is unable finishing previous events and new onTick events arrive.
|
|
|
|
 |
jaime_1008
|
Post subject: Re: Message that i dont understand |
Post rating: 0
|
Posted: Mon 16 Feb, 2015, 15:36
|
|
User rating: 1
Joined: Sun 18 Dec, 2011, 04:05 Posts: 36 Location: Spain, Madrid
|
thanks,
Any suggestions to fix this?
Best regards
|
|
|
|
 |
jaime_1008
|
Post subject: Re: Message that i dont understand |
Post rating: 0
|
Posted: Thu 19 Feb, 2015, 10:59
|
|
User rating: 1
Joined: Sun 18 Dec, 2011, 04:05 Posts: 36 Location: Spain, Madrid
|
|
|
|
 |
API Support
|
Post subject: Re: Message that i dont understand |
Post rating: 0
|
Posted: Thu 19 Feb, 2015, 11:49
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
To fix this you need to free up CPU resources on your machine or increase strategy's performance. One option could be to place maximum computation logic inside onBar() method rather than in onTick().
|
|
|
|
 |
jaime_1008
|
Post subject: Re: Message that i dont understand |
Post rating: 0
|
Posted: Fri 20 Feb, 2015, 13:57
|
|
User rating: 1
Joined: Sun 18 Dec, 2011, 04:05 Posts: 36 Location: Spain, Madrid
|
Ok. Thanks. I will improve this.
Best regards
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|