Dukascopy
 
 
Wiki JStore Search Login

DEMO Platform freezes upon re-starting Strategy
 Post subject: DEMO Platform freezes upon re-starting Strategy Post rating: 0   New post Posted: Wed 26 Sep, 2012, 19:10 

User rating: 0
Joined: Thu 02 Jun, 2011, 21:07
Posts: 1
Location: United States,
I have tried running the Order Update Table strategy written by Dukascopy that is found in the wiki at https://www.dukascopy.com/wiki/#Order_update_table. I have made no modifications to the code.

I start and stop this strategy from the 'Strategies' bottom tab on the DEMO platform. The first time I run it, there are no problems. It seems to work perfectly. So then I stop the strategy. I then do nothing more than re-start the same strategy and the whole platform freezes. Nothing can be clicked. No updates to price. Completely frozen. And it never generates any error. The strategy status only says "Starting". So it seems that it never gets fully started. I then have to manually kill the frozen platform.

I am running JForex DEMO 2.20/2.7.3 on Mac OS X 10.6.8. I have not tested the LIVE version of JForex.

Please make any suggestions as I am unable to go forward with any development at this time.

Thank you.


 
 Post subject: Re: DEMO Platform freezes upon re-starting Strategy Post rating: 0   New post Posted: Fri 12 Apr, 2013, 14:54 
User avatar

User rating: 0
Joined: Fri 11 Nov, 2011, 17:02
Posts: 4
Location: United Kingdom, London
I had the same problem with the platform, but after the updates, demo platform work well, but now the problem is with the live platform, it freezes and there is nothing I can do. maybe if you update the live platform to v2.24.7 at least (because I notice that from that version the demo platform worked well) there will be no problems.


 
 Post subject: Re: DEMO Platform freezes upon re-starting Strategy Post rating: 0   New post Posted: Sat 13 Apr, 2013, 05:11 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
It seems to me this may be a cleanup issue, and I'd suggest
modifying the following code so that JPanel mainPanel is given
global scope, instead of local scope, so that dispose() can
later be called on this Swing component within IStrategy.onStop().

That's my guess why it is hanging on inadequate cleanup of
prior instance, I haven't actually tested whether that's the problem.

HyperScalper

 private void placeControlsOnTab(IContext context) {
        JPanel mainPanel = userInterface.getBottomTab(TAB_NAME);
        mainPanel.setLayout(new BorderLayout());
        tableModel = new OrderTableModel();
        table = new JTable(tableModel);
        mainPanel.add(new JScrollPane(table), BorderLayout.CENTER);

    }


 

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