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.

Overloaded Queue
 Post subject: Overloaded Queue Post rating: 0   New post Posted: Fri 11 Mar, 2011, 16:13 

User rating: 0
Joined: Tue 15 Sep, 2009, 00:44
Posts: 20
If an indicator on the five minute time frame uses a large number of bars such as 800 to 1000, will this overload the queue?

I am having a problem with an overloaded queue and the indicators appear to be the problem. Notice the gap in time between 07:46:43 and 08:02:58 when calculating indicators in the 5 minute time frame.

08:02:58 jTest 2.35 onBar(eEntry)- 03.03_03:02:58 469
08:02:58 jTest 2.35 onBar(M5x)- 03.03_03:02:58 449 <-----ending of calcs
07:46:43 jTest 2.35 onBar(M5e)- 03.03_02:46:43 707 <-----begin calcs on M5
07:46:43 jTest 2.35 onBar(M15x)- 03.03_02:46:43 647
07:46:43 jTest 2.35 onBar(M15e)- 03.03_02:46:43 647
07:45:42 jTest 2.35 onBar(xEntry)- 03.03_02:45:42 830


 
 Post subject: Re: Overloaded Queue Post rating: 0   New post Posted: Tue 15 Mar, 2011, 14:49 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
have you measured how long and how much resources is your calculation taking?

a 16 min. gap is massive


 
 Post subject: Re: Overloaded Queue Post rating: 0   New post Posted: Tue 22 Mar, 2011, 18:01 

User rating: 0
Joined: Tue 15 Sep, 2009, 00:44
Posts: 20
I moved the calculations to a separate thread and haven't seen this problem since then.

I am a bit surpirsed that JForex cannot handle a standard indicator calculation within the same thread no matter how many bars are being used. This strategy is running in MetaTrader4 without a problem.


 
 Post subject: Re: Overloaded Queue Post rating: 0   New post Posted: Wed 23 Mar, 2011, 08:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Normally there shouldn't be any problem with indicators calculating over a large number of bars, do you use a built-in or a custom indicator?


 

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