|
cannot recall saved parameters (preset) for back testing |
Isak
|
Post subject: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Wed 21 Mar, 2012, 15:11
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
When I save a set of parameters in the "Define Parameters" dialog box that appears before back-testing, it appears in the "preset" drop-down list. However, without exception, the new preset never persists to the next back-test. Each time, the drop-down list is empty again, meaning that all parameters must be set up from scratch again. Am I missing something?
EDIT: "without exception" --> "when using a user-defined enum in an external library"
|
|
|
|
 |
Platform Support
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Thu 22 Mar, 2012, 15:26
|
|
JForex Master |  |
User rating: ∞
Joined: Wed 16 Sep, 2009, 18:23 Posts: 1054 Location: Geneva, Switzerland
|
Have you saved the presets under custom name? If yes, it should be visible next time you run it. Check if the version you use is at least 2.14.28.6.
|
|
|
|
 |
Isak
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Thu 22 Mar, 2012, 21:22
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
Yes, I save with a custom name each time, but it disappears from the list every time.
Here is exactly what I do: 1. Start strategy back-test 2. In the parameters dialog box, adjust parameters, replace "*Default Preset" with "camrev", click the save button, click ok. ("camrev" appears in the drop-down list) 3. Allow the strategy to run a bit an then click stop. 4. Wait a bit and start the strategy again. 5. Now, in the parameters dialog box, there is again only one entry in the presets drop-down list: "*Default Preset". All my settings have been lost.
I am using version 2.14.28.6, windows, and this bug happens without exception. (About a year ago this problem did not exist, if I remember correctly.)
|
|
|
|
 |
Platform Support
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 23 Mar, 2012, 09:07
|
|
JForex Master |  |
User rating: ∞
Joined: Wed 16 Sep, 2009, 18:23 Posts: 1054 Location: Geneva, Switzerland
|
Weird, we are unable to reproduce it. Everything is saving correctly. Could you try to restore the default settings (File/Restore default) and try then?
|
|
|
|
 |
Isak
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 23 Mar, 2012, 15:54
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
I went to each tab in the "preferences" dialog box and clicked "default". Then I clicked "OK", and closed and restarted the platform. Then I tried again, and the bug is still there. Attachment:
disappearing presets.png [70.67 KiB]
Downloaded 1274 times
On the left is the parameters dialog box after saving a preset. On the right is the dialog box when it opens when I run the strategy again. As you can see, the saved preset ("camrev") has disappeared.
|
|
|
|
 |
Platform Support
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 23 Mar, 2012, 17:33
|
|
JForex Master |  |
User rating: ∞
Joined: Wed 16 Sep, 2009, 18:23 Posts: 1054 Location: Geneva, Switzerland
|
Please try File/Restore default
|
|
|
|
 |
Isak
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 23 Mar, 2012, 20:46
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
Okay. Will I lose the historical data?
|
|
|
|
 |
Isak
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Sat 24 Mar, 2012, 11:58
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
I tried File/Restore default, and the problem is still there.
|
|
|
|
 |
Isak
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Sat 24 Mar, 2012, 12:03
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
I don't know if it is related to this problem, but another thing I've noticed is that, after running a back-test, I have to press the "play" button on the historical tester twice before the back-test will run. The first click on "play" button elicits no response if a back-test has just completed/stopped.
|
|
|
|
 |
ohnoes
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 30 Mar, 2012, 03:02
|
|
User rating: 0
Joined: Wed 21 Mar, 2012, 14:18 Posts: 4
|
|
|
|
 |
Isak
|
Post subject: Re: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 30 Mar, 2012, 10:57
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
Thanks ohnoes. I think the problem may have something to do with using user-defined enums as configurable parameters. On client start-up I am getting a similar exception to the one you list in viewtopic.php?f=85&t=46929
|
|
|
|
 |
Isak
|
Post subject: how to reproduce: cannot recall saved parameters (preset) for back testing |
Post rating: 0
|
Posted: Fri 20 Apr, 2012, 08:43
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
Desktop Support wrote: Weird, we are unable to reproduce it. Everything is saving correctly. This is how this bug can be reproduced: Create and compile an external library "libToReproducePresetBug.jar" that contains the file "userDefinedEnum.java": package isak.odds;
/** * userDefinedEnum.java */ public enum userDefinedEnum{ valueA, valueB, valueC }; (I used Netbeans, but that shouldn't matter.) Place "libToReproducePresetBug.jar" into the files directory and create the following strategy in the JForex client: package jforex;
import java.util.*;
import com.dukascopy.api.*;
import isak.odds.*;
@Library("libToReproducePresetBug.jar")
@RequiresFullAccess public class presetBugProducer implements IStrategy {
@Configurable("Setting 1") public userDefinedEnum setting1 = userDefinedEnum.valueA; private IEngine engine; private IConsole console; private IHistory history; private IContext context; private IIndicators indicators; private IUserInterface userInterface; public void onStart(IContext context) throws JFException { this.engine = context.getEngine(); this.console = context.getConsole(); this.history = context.getHistory(); this.context = context; this.indicators = context.getIndicators(); this.userInterface = context.getUserInterface(); }
public void onAccount(IAccount account) throws JFException { }
public void onMessage(IMessage message) throws JFException { }
public void onStop() throws JFException { }
public void onTick(Instrument instrument, ITick tick) throws JFException { } public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException { } } Now run a back-test, save a preset, stop the back-test, and try retrieving the preset on a subsequent run. There was a point in the past when this bug was not present.
|
|
|
|
 |
Isak
|
Post subject: Cannot recall saved parameters (preset) if one of the parameters is a user-defined enum in external library |
Post rating: 0
|
Posted: Fri 20 Apr, 2012, 08:51
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
Summary: - Cannot recall saved parameters (preset) if one of the parameters is a user-defined enum in external library.
- This problem occurs with live runs as well as back-testing.
- The bug was not present some months ago.
- Procedure to reproduce bug provided in last post above.
- Exceptions in Java console reveal a problem with using user-defined enum in external library as strategy parameter type.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|