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.

How to runstrategy from eclipse, please help.
 Post subject: How to runstrategy from eclipse, please help. Post rating: 0   New post Posted: Tue 19 Jun, 2018, 21:43 

User rating: 4
Joined: Wed 23 May, 2018, 20:08
Posts: 44
Location: FinlandFinland
Hello,

I try to run my strategy from eclipse, but I can not get it to run. I should not stop, please help.


2018-06-19 23:41:21.599 INFO  Main - Executing onStart
2018-06-19 23:41:21.601 INFO  Main - Running
2018-06-19 23:41:21.601 INFO  Main - Executing onStop
2018-06-19 23:41:21.612 INFO  FeedMetadataManager - Loading first times for [CAD/JPY]...
2018-06-19 23:41:21.621 INFO  Main - Strategy stopped: 0
2018-06-19 23:41:21.622 ERROR Main - C:\report.html (Access is denied)
java.io.FileNotFoundException: C:\report.html (Access is denied)
   at java.io.FileOutputStream.open0(Native Method)
   at java.io.FileOutputStream.open(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at com.dukascopy.dds2.greed.agent.strategy.tester.start.TesterStrategies.createReport(TesterStrategies.java:234)
   at com.dukascopy.api.impl.connect.TesterClientImpl.createReport(TesterClientImpl.java:1018)
   at singlejartest.TesterMain$1.onStop(TesterMain.java:83)
   at com.dukascopy.api.impl.connect.TesterClientImpl$4.onStop(TesterClientImpl.java:605)
   at com.dukascopy.dds2.greed.agent.strategy.tester.start.TesterLoadingProgressListener.loadingFinished(TesterLoadingProgressListener.java:78)
   at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyTesterRunner.run(StrategyTesterRunner.java:456)
   at java.lang.Thread.run(Unknown Source)
2018-06-19 23:41:21.683 INFO  FeedMetadataManager - First times loaded {CAD/JPY={Ticks=1098662461975, 1 Min=1098662460000, Hourly=1098662400000, Daily=730425600000}}


 
 Post subject: Re: How to runstrategy from eclipse, please help. Post rating: 0   New post Posted: Wed 20 Jun, 2018, 10:41 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,

When you try to save file directly on c disk often happens "permission error". Try to use another directory for your report file.
For example C:\Users\<username>\MyReports


 
 Post subject: Re: How to run strategy from eclipse, please help. Post rating: 0   New post Posted: Wed 20 Jun, 2018, 12:57 

User rating: 4
Joined: Wed 23 May, 2018, 20:08
Posts: 44
Location: FinlandFinland
Hello,

Thank you very much for your quick help! Unfortunately it was not the ultimate solution for my problem, as the problem still persist. I run eclipse as admin and I changed the directory to another directory "C:\\Users\\MyName\\MyReport";. The program still denies access to the disk, with the same error set. I am using the default SDK that dukascopy bank provides.
Is there some custom solution for my problem? I would like the strategy to run in Demo mode, with real time data, help please!


API Support wrote:
Hello,

When you try to save file directly on c disk often happens "permission error". Try to use another directory for your report file.
For example C:\Users\<username>\MyReports


 
 Post subject: Re: How to runstrategy from eclipse, please help. Post rating: 0   New post Posted: Thu 21 Jun, 2018, 08:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The problem is definitely not in SDK. If you run as a administrator and checked it, here are a few options. Maybe your strategy works with file incorrectly, try to open/save something in for-loop, for example. Or maybe this file at the same time is used by another application.


 
 Post subject: Re: How to runstrategy from eclipse, please help. Post rating: 0   New post Posted: Thu 21 Jun, 2018, 09:35 

User rating: 4
Joined: Wed 23 May, 2018, 20:08
Posts: 44
Location: FinlandFinland
I have special characters in my c-path folder. For example C:\Users\specialcharacters\MyReports, I am going to look into it, if that could cause the problem.


 

Jump to:  

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