Dukascopy
 
 
Wiki JStore Search Login

Backtests doesn't work (2.22.2)
 Post subject: Backtests doesn't work (2.22.2) Post rating: 0   New post Posted: Sun 23 Dec, 2012, 08:46 
User avatar

User rating: 0
Joined: Tue 17 Jan, 2012, 15:15
Posts: 20
Location: Russian FederationRussian Federation
Hello,

I cannot do any backtests after last update.
Steps:
1. Launch JForex.
2. Select any strategy from down-list on Historical Tester tab.
3. Click Play button.

Play button changes to "Stop", it shows Filling.., etc, then "Running" and Stop button changes back to "Play".
Java console log:
Java Web Start 1.6.0_34
Using JRE version 1.6.0_34-b04 Java HotSpot(TM) 64-Bit Server VM
User home directory = C:\Users\ZeroIce
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
Could not launch from cache. Will try online mode. [Some of required resources are not cached.]
23.12.2012 07:39:14.258     INFO                         util.u ] Starting Resource Preloader Hardlinker.
23.12.2012 07:39:14.307     INFO                         util.u ] Final Hard Refs: size: 63
23.12.2012 07:39:43.466  WARNING                     connect.cm ] White Label Image is not received
23.12.2012 07:39:47.298   SEVERE                      actions.c ] null
java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
   at java.util.HashMap$KeyIterator.next(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.p.a(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.p.aK(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.p.FV(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.DT(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.v.run(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.b.a(Unknown Source)
   at com.dukascopy.dds2.greed.actions.StrategyTesterAction.BE(Unknown Source)
   at com.dukascopy.dds2.greed.actions.StrategyTesterAction.Be(Unknown Source)
   at com.dukascopy.dds2.greed.actions.c.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


OS: Windows 8 Pro 64Bit
Java: 1.6 Oracle

Ask for any other details if needs please.


 
 Post subject: Re: Backtests doesn't work (2.22.2) Post rating: 0   New post Posted: Mon 14 Jan, 2013, 11:30 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
We are not able to repeat it. Could you please send us the strategy source or the piece of it causing the problems as well as the following information:
Was the Visual Mode enabled?
What was the period and time range chosen?


 
 Post subject: Re: Backtests doesn't work (2.22.2) Post rating: 0   New post Posted: Tue 15 Jan, 2013, 19:00 
User avatar

User rating: 0
Joined: Tue 17 Jan, 2012, 15:15
Posts: 20
Location: Russian FederationRussian Federation
I reinstalled java and no more this problem. I used these steps to reproduce:
1. Take empty strategy. Important only this code:
    public void onStart(IContext context) throws JFException {
        this.context = context;
        engine = context.getEngine();
        indicators = context.getIndicators();
        history = context.getHistory();
        console = context.getConsole();
        indicators = context.getIndicators();

        Set subscribedInstruments = new HashSet();
        subscribedInstruments.add(instr1);
        subscribedInstruments.add(instr2);
        context.setSubscribedInstruments(subscribedInstruments);

2. Launch backtest with 2 any instruments (Process all ticks, Visual mode is off).

The problem were happen only when I use more than 1 instrument. Sounds like synchronization failure.

Thanks for reply.


 

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