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.

Standalone no longer working
 Post subject: Standalone no longer working Post rating: 0   New post Posted: Fri 20 Apr, 2012, 15:15 

User rating: 5
Joined: Thu 29 Mar, 2012, 15:00
Posts: 19
Hello,

I created a new demo account earlier and since then I've been unable to get any strategies to run properly.

They start and stop but I don't get any bars in between...

I've taken your sample strategy code in order to check that it's not my fault but it's still not working.

Thanks,

Tommy


Attachments:
TesterMain.java [6.83 KiB]
Downloaded 270 times
MA_Play.java [4.56 KiB]
Downloaded 268 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Standalone no longer working Post rating: 2   New post Posted: Sat 21 Apr, 2012, 19:01 

User rating: 6
Joined: Sat 03 Mar, 2012, 10:29
Posts: 9
It's the same for me. The developers are aware of the problem, but for some reason no fix has been published yet. You can insert
Thread.sleep(5000);
before starting a strategy. This solves the problem for me, but at the end of the testing I still get errors:
2012-04-21 19:59:15.847 ERROR LocalCacheManager - Shutdown in progress
java.lang.IllegalStateException: Shutdown in progress
   at java.io.DeleteOnExitHook.add(DeleteOnExitHook.java:60)
   at java.io.File.deleteOnExit(File.java:1008)
   at com.dukascopy.charts.data.datacache.LocalCacheManager.getIntraPeriodFileHandle(LocalCacheManager.java:487)
   at com.dukascopy.charts.data.datacache.LocalCacheManager$WriteDelayedTasks.run(LocalCacheManager.java:2785)
   at java.util.TimerThread.mainLoop(Timer.java:555)
   at java.util.TimerThread.run(Timer.java:505)

But this may be an individual problem only affecting me.


 
 Post subject: Re: Standalone no longer working Post rating: 0   New post Posted: Mon 23 Apr, 2012, 09:49 

User rating: 5
Joined: Thu 29 Mar, 2012, 15:00
Posts: 19
Thanks a lot, that seemed to fix it. I did read about using the Thread.sleep elsewhere but didn't realise that the problem I had was the same...


 

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