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.

remote run a strategy with a customer indicator
 Post subject: remote run a strategy with a customer indicator Post rating: 0   New post Posted: Mon 25 Nov, 2013, 06:57 

User rating: 0
Joined: Wed 20 Nov, 2013, 13:20
Posts: 3
Location: China, NanJing
Hi, Dukascopy team


I try to run sample at https://www.dukascopy.com/wiki/#Use_cust ... _indicator
on remote run
CutomIndicatorPackageInJfx.java
Indicator.java

however it didn't support access local resource even I put the customer indicator file on strategy/files folder.
with security access error:
Any solutions?
viewtopic.php?f=88&t=46495&p=61631&hilit=remote+run#p61631

I found this submitted bug fixed above, any suggestions for above request?

I also can't use @RequiresFullAccess annotation for running strategy on server.


Could you help me? thanks a lot


 
 Post subject: Re: remote run a strategy with a customer indicator Post rating: 0   New post Posted: Mon 25 Nov, 2013, 13:02 

User rating: 0
Joined: Wed 20 Nov, 2013, 13:20
Posts: 3
Location: China, NanJing
logs in remote running

ERROR
20.11.2013 14:59:02 java.security.AccessControlException: access denied ("java.io.FilePermission" "/opt/dukascopy/log/JSS/work/708442/0/912114cb-f487-4cb8-a671-e649cedd241d/." "read") @ jforex.lib.MTF_TDI_Strategy.onStart(MTF_TDI_Strategy.java:155)
ERROR
20.11.2013 14:59:02 at java.lang.Thread.run(Thread.java:724)
ERROR
20.11.2013 14:59:02 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926)
ERROR
20.11.2013 14:59:02 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
ERROR
20.11.2013 14:59:02 at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:604)
ERROR
20.11.2013 14:59:02 at com.dukascopy.api.impl.connect.JFRunnableProcessor.onStart(JFRunnableProcessor.java:140)
ERROR
20.11.2013 14:59:02 at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27)
ERROR
20.11.2013 14:59:02 at com.dukascopy.dds2.greed.util.FilePathManager.getFilesForStrategiesDir(FilePathManager.java:429)
ERROR
20.11.2013 14:59:02 at com.dukascopy.dds2.greed.util.FilePathManager.checkAndGetFolder(FilePathManager.java:411)
ERROR
20.11.2013 14:59:02 at java.io.File.exists(File.java:770)
ERROR
20.11.2013 14:59:02 at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
ERROR
20.11.2013 14:59:02 at java.security.AccessController.checkPermission(AccessController.java:559)
ERROR
20.11.2013 14:59:02 access denied ("java.io.FilePermission" "/opt/dukascopy/log/JSS/work/708442/0/912114cb-f487-4cb8-a671-e649cedd241d/." "read"): java.security.AccessControlException: access denied ("java.io.FilePermission" "/opt/dukascopy/log/JSS/work/708442/0/912114cb-f487-4cb8-a671-e649cedd241d/." "read")
ERROR
20.11.2013 14:59:02 java.security.AccessControlException: access denied ("java.io.FilePermission" "/opt/dukascopy/log/JSS/work/708442/0/912114cb-f487-4cb8-a671-e649cedd241d/." "read") @ java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)


 
The Best Answer  Post subject: Re: remote run a strategy with a customer indicator Post rating: 0   New post Posted: Mon 25 Nov, 2013, 14:25 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
On remote servers you can only use custom indicators that are defined within the strategy file, see:
https://www.dukascopy.com/wiki/#Use_custom_indicator_in_strategies/Simple_custom_indicator
the approach with:
 indicators.registerCustomIndicator(Indicator.class);


 
 Post subject: Re: remote run a strategy with a customer indicator Post rating: 0   New post Posted: Tue 26 Nov, 2013, 13:50 

User rating: 0
Joined: Wed 20 Nov, 2013, 13:20
Posts: 3
Location: China, NanJing
thanks a lot. I solve this problem based on above suggestions :D :D :D :D :D :D !


 

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