- ago
I have a C# coded strategy which defines a couple of optimizable parameters:
CODE:
   // def, min, max, step          AddParameter("NumLevelsHigher", ParameterType.Int32, 5, 0, 20, 1); // 0          AddParameter("NumLevelsLower", ParameterType.Int32, 10, 0, 20, 1); // 1          AddParameter("DistancePct", ParameterType.Double, 0.5, 0.1, 5.5, 0.1); // 2          AddParameter("StopLoss1Pct", ParameterType.Double, 0.0, 0.0, 20.0, 1.0); // 3          AddParameter("StopLossLevel", ParameterType.Double, 0.1, 0.0, 20.0, 0.25); // 4          AddParameter("Timeout",     ParameterType.Int32, 15, 1, 100, 1); // 5          AddParameter("GateClosureTime", ParameterType.Int32, 59, 56, 62, 1); // 6

When I open such a strategy in WL8 I get a nice GUI for these parameters:

Now I tend to adjust the parameter definitions in code from time to time.
These changes are not reflected in the GUI instead a new backtest runs with the (old) settings from the GUI.
This is quite disturbing.

On the other hand, in optimization, the Optimization Parameters always precisely reflect my current definitions in code:


So my #FeatureRequest:
Make the settings in the parameter GUI for simple backtests reflect changes in code.
If I change a default parameter value in coide, I want to
1.) see this default value in the parameter GUI
2.) make the backtest use this default parameter value



0
194
2 Replies

Reply

Bookmark

Sort
Cone8
 ( 24.99% )
- ago
#1
Until something better can be done, after making code changes to the StrategyParameters...

1. Compile
2. Move the slider for any parameter
3. Click "Reset Values to Defaults'
0
- ago
#2
QUOTE:
Click "Reset Values to Defaults'


Now I discovered this Button in "Strategy Settings"

I miss this very same button in main window, lower left pane "Parameters" (see Screenshot above)

(Made visible by View->Show Parameter Slider Panel)
0

Reply

Bookmark

Sort