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.

Programmatically detect current workspace?
 Post subject: Programmatically detect current workspace? Post rating: 0   New post Posted: Tue 03 Mar, 2015, 22:52 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 00:35
Posts: 58
Location: New Zealand, Auckland
Hi

In JForex, is it possible to programmatically detect the current workspace?

I would like the behaviour of a strategy to depend on the current workspace, e.g. to modify chart objects only when in a certain workspace.

Regards
Tony


 
 Post subject: Re: Programmatically detect current workspace? Post rating: 0   New post Posted: Wed 04 Mar, 2015, 13:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It is possible to have same strategy opened in different workspaces (represented by different Workspace.xml files).
The strategy can have several input parameter presets. When starting a strategy you can choose a default preset. This default preset is stored in current workspace.xml.
Therefore, if another worspace.xml is chosen, same strategy will be started with another preset.
This way strategy behavior can be changed based on preset parameters.


 
 Post subject: Re: Programmatically detect current workspace? Post rating: 0   New post Posted: Thu 05 Mar, 2015, 00:53 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 00:35
Posts: 58
Location: New Zealand, Auckland
Thank you.

I had not realised that strategy settings were saved with the workspace. An easy solution.

Cheers
Tony


 

Jump to:  

cron
  © 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