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.

Automatically run same strategy with multiple parameters
 Post subject: Automatically run same strategy with multiple parameters Post rating: 0   New post Posted: Sat 14 May, 2011, 12:36 

User rating: 0
Joined: Wed 13 Jul, 2011, 01:19
Posts: 8
Location: DE
Hello,
I am running Debian and want to automatically start multiple instances of one strategy but with different parameters.
When I enter this command:
javaws -J-Djnlp.client.username=USERNAME -J-Djnlp.client.password=PASSWORD
       -J-Djnlp.strategy.path=/home/strategy.jfx,params1;/home/strategy.jfx,params2 https://www.dukascopy.com/client/live/jclient/jforex.jnlp

I get this error:
/home/strategy.jfx,params2: No such file or directory

At the same time these two commands work just fine:
javaws -J-Djnlp.client.username=USERNAME -J-Djnlp.client.password=PASSWORD
       -J-Djnlp.strategy.path=/home/strategy.jfx,params1 https://www.dukascopy.com/client/live/jclient/jforex.jnlp

javaws -J-Djnlp.client.username=USERNAME -J-Djnlp.client.password=PASSWORD
       -J-Djnlp.strategy.path=/home/strategy.jfx,params2 https://www.dukascopy.com/client/live/jclient/jforex.jnlp


What am I missing here? Isn't it possible to specify multiple strategies separated by semicolons?


 
 Post subject: Re: Automatically run same strategy with multiple parameters Post rating: 0   New post Posted: Fri 20 May, 2011, 15:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
you need to specify the correct binary on linux:

 /usr/lib/jvm/jre1.6.0_21/bin/javaws -J-Djnlp.client.username=LOGIN  -J-Djnlp.client.password=PASSWORD https://www.dukascopy.com/client/live/jclient/jforex.jnlp


 
 Post subject: Re: Automatically run same strategy with multiple parameters Post rating: 0   New post Posted: Sun 22 May, 2011, 00:37 

User rating: -
Thank you for the reply.
I have now tried it with the full path to the binary. In my case it's "/usr/lib/jvm/java-6-sun-1.6.0.22/bin/javaws".
Unfortunately the same error still occurs.
As the javaws binary is found in both cases, the error seems to be related to the fact that I'm trying to load multiple strategies.


 
 Post subject: Re: Automatically run same strategy with multiple parameters Post rating: 0   New post Posted: Wed 25 May, 2011, 08:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Apparently in Linux semicolumn acts as a parameter splitter. Consider putting the strategy path in quotes:
javaws -J-Djnlp.client.username=USERNAME -J-Djnlp.client.password=PASSWORD
       -J-Djnlp.strategy.path="/home/strategy.jfx,params1;/home/strategy.jfx,params2" https://www.dukascopy.com/client/live/jclient/jforex.jnlp


 

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