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.

Automate the launch of the tester's optimization in JForex client
 Post subject: Automate the launch of the tester's optimization in JForex client Post rating: 0   New post Posted: Fri 03 Jan, 2014, 17:34 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Hi,

I didn't found if this is possible within the JForex client.

I'd like to launch every day a strategy in the backtester in "optimization" mode from an other strategy.
Is this possible ? What is the best way to do it ?

Please see below a screenshot of how it should look like, and the parameters it should have in input :

Thanks.
Nicolas

Image


 
 Post subject: Re: Automate the launch of the tester's optimization in JForex client Post rating: 2   New post Posted: Sun 05 Jan, 2014, 23:34 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
This is not possible with the JForex client itself:
You cannot modify a running strategy's parameters directly (using only the client's possibilities). You have to create a kind of event listener within the strategy that continuously and frequently checking/reading something (an xml file, for instance), and processing the file's content. With this you can modify the parameters on the fly.
So at least from the strategy parameters point of view, you should consider some extra coding within the strategy.

The JForex-SDK maybe a better choice, instead of the client:
You can run the Historical Tester as a java application, you can run your strategy as a java application, and you would be able to synchronize the 2 separate java programs, to update the current strategy parameter set.
More details on the SDK can be read here.


 
 Post subject: Re: Automate the launch of the tester's optimization in JForex client Post rating: 0   New post Posted: Mon 06 Jan, 2014, 08:51 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Thanks tcsabina.

I wrote at the bottom of the post that the running strategy (the one trading live) is reading his parameters from an XML file.
The XML file is generated after each daily backtest.

So the question is, can I launch every day a strategy in the backtester in "optimization" mode from an other strategy ?
If yes, what is the best way to do it ?

Thanks for your help.

Nicolas


 
 Post subject: Re: Automate the launch of the tester's optimization in JForex client Post rating: 0   New post Posted: Mon 06 Jan, 2014, 16:57 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,

I think the easiest would be to use the JForex-SDK to fire up the Historical Tester every morning. You could define your set of parameters for optimization, and the running tester would update the xml file for the running strategy.
There are some steps discussed in this topic about how the modify the SDK to optimize a given strategy. You could use it as a start.

I think this is the only way to automate the launching of the Historical Tester. Support would probably correct me if I am wrong, but it is not possible to start the Tester from a strategy.


I hope this helps.


 
 Post subject: Re: Automate the launch of the tester's optimization in JForex client Post rating: 0   New post Posted: Sat 11 Jan, 2014, 14:04 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Thanks man, I'll try that once I'm in production mode.

At this time I have to first finish my 7 year XML backtest and it takes an eternity ! (about 20 days...)
I'll keep you updated...

best regards
Nicolas


 

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