|
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 |
Smackenn
|
Post subject: EMA calc error in code that has been working fine for some time - 4hr interval only |
Post rating: 0
|
Posted: Mon 01 Sep, 2014, 16:38
|
|
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?
|
|
|
|
|
API Support
|
Post subject: Re: EMA calc error in code that has been working fine for some time - 4hr interval only |
Post rating: 0
|
Posted: Tue 02 Sep, 2014, 07:49
|
|
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.
|
|
|
|
|
Smackenn
|
Post subject: Re: EMA calc error in code that has been working fine for some time - 4hr interval only |
Post rating: 0
|
Posted: Tue 02 Sep, 2014, 20:21
|
|
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
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|