|
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? |
Jellybean
|
Post subject: Programmatically detect current workspace? |
Post rating: 0
|
Posted: Tue 03 Mar, 2015, 22:52
|
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: Programmatically detect current workspace? |
Post rating: 0
|
Posted: Wed 04 Mar, 2015, 13:01
|
|
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.
|
|
|
|
 |
Jellybean
|
Post subject: Re: Programmatically detect current workspace? |
Post rating: 0
|
Posted: Thu 05 Mar, 2015, 00:53
|
|
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
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|