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 run automatically a strategy when i start jforex desktop platform
 Post subject: how to run automatically a strategy when i start jforex desktop platform Post rating: 0   New post Posted: Mon 16 Feb, 2015, 15:21 
User avatar

User rating: 1
Joined: Fri 22 Mar, 2013, 12:09
Posts: 9
Location: Italy, Florence
Hi

i created a strategy in java, named "MyBeautifullStrategy" for the jforex
desktop platform, that's run in "local mode"
there is a way to start the strategy automatically when i open the jforex
desktop?
i try to explain better:
there is lines of codes that i have to write in java to start my strategy
when i open jforex desktop platform?

if not possible, second solution:
when i run jforex desktop platform, in windows 7 o.s., i use a file run.bat
white this code:
javaws -J-Djnlp.client.username=myUser -J-Djnlp.client.password=myPwd
jforex.jnlp

can i add any istructions to run my strategy MyBeautifullStrategy? like
this example:

javaws -J-Djnlp.client.username=myUser -J-Djnlp.client.password=myPwd *-J-
Djnlp.client.strategy=MyBeautifullStrategy* jforex.jnlp


 
 Post subject: Re: how to run automatically a strategy when i start jforex desktop platform Post rating: 0   New post Posted: Wed 18 Feb, 2015, 14:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Command line can be used to start a strategy together with Jforex client:

javaws -J-Djnlp.client.username=USER -J-Djnlp.client.password=PASSWORD -J-Djnlp.strategy.path="C:\Strategy.jfx" jforex-demo.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