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.

Transferring Presets between Strategy versions.
 Post subject: Transferring Presets between Strategy versions. Post rating: 0   New post Posted: Mon 10 Dec, 2012, 01:10 
User avatar

User rating: 1
Joined: Fri 14 Sep, 2012, 02:25
Posts: 57
Location: New Zealand, Christchurch
Can you please advise I can best (automate?) transfer of Presets between Strategy versions - each with unique .jfx / strategy names?


 
 Post subject: Re: Transferring Presets between Strategy versions. Post rating: 0   New post Posted: Mon 10 Dec, 2012, 09:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Presets are kept in xml files, thus you can modify them manually or programmatically as xml files. For the latter approach, however, consider that the file format is subject to change.


 
 Post subject: Re: Transferring Presets between Strategy versions. Post rating: 0   New post Posted: Mon 10 Dec, 2012, 20:57 
User avatar

User rating: 1
Joined: Fri 14 Sep, 2012, 02:25
Posts: 57
Location: New Zealand, Christchurch
ok thanks.
What I have discovered is that I can copy "Strategy1.xml" as "Strategy2.xml" - so long as I then replace all occurrences of "Strategy1" with "Strategy2" within the destination xml.
Transferring individual presets is the same story - just cut & paste the whole "preset@..." node then do a global replace of strategy name.

If someone with better java skills than me could develop a small utility to extract / import presets that would potentially be very useful - especially if we wanted to share Strategies and also associated presets for different timeframes, instruments, etc.


 
 Post subject: Re: Transferring Presets between Strategy versions. Post rating: 0   New post Posted: Tue 18 Dec, 2012, 04:46 
User avatar

User rating: 1
Joined: Fri 14 Sep, 2012, 02:25
Posts: 57
Location: New Zealand, Christchurch
Looks like the Strategy Name is no longer embedded in the preset .xml file -
so preset .xml files can now simply be copied between strategies without the need to modify them at all.
Thank you !!


 

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