Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

EMA calc error in code that has been working fine for some time - 4hr interval only
 Post subject: EMA calc error in code that has been working fine for some time - 4hr interval only Post rating: 0   New post Posted: Mon 01 Sep, 2014, 16:38 
User avatar

User rating: 0
Joined: Mon 09 Jul, 2012, 14:09
Posts: 17
Location: Ireland,
15:28:30 Strategy tester: java.lang.IllegalArgumentException: Illegal Capacity: -2048076884 @ jforex.MandelbrotDaily.testCandleInterval(MandelbrotDaily.java:193)

Got this message for the first time in relation to code that has been working fine for a very long time. The line is for the calculation of a 25 period EMA. It affects all the Historical Testers (Live and Demo) but only for the 4 hour interval calculations.

Can you help?


 
 Post subject: Re: EMA calc error in code that has been working fine for some time - 4hr interval only Post rating: 0   New post Posted: Tue 02 Sep, 2014, 07:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide an example strategy which replicates the case. Please provide Historical Tester settings that you use.


 
 Post subject: Re: EMA calc error in code that has been working fine for some time - 4hr interval only Post rating: 0   New post Posted: Tue 02 Sep, 2014, 20:21 
User avatar

User rating: 0
Joined: Mon 09 Jul, 2012, 14:09
Posts: 17
Location: Ireland,
Thanks for coming back so fast. I believe I have found the problem: I was trying to get an indicator in the onStart method. I can now understand why this would not be a valid location, as the indicator (EMA) requires bar information / SMcK


 

Jump to:  

cron
  © 1998-2024 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