- ago
- Create any compiled strategy with parameters.
- change the value of one of the parameters.
- Click on "Save these Parameters as the Strategy's default.
- You get this exception:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at WealthLab.Core.ParameterList.Parse(String s)
at InitializerService.QueryCandidate(String , InitializerService )
at WealthLab.Backtest.Strategy.AssignParameterDefaults(List`1 values)
at AttrInterpreter.SetupWorker(Object , List`1 , AttrInterpreter )
at WealthLab7.cwStrategy.SaveParameterDefaults(List`1 paramValues)
at WealthLab7.cwStrategy.ValidateRecord(Object last, RoutedEventArgs ord)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
0
374
Solved
3 Replies

Reply

Bookmark

Sort
- ago
#1
Confirmed.
0
- ago
#2
Compiled strategies should not (and do not) save parameters. This button is to be removed from Build 7.
0
Best Answer
Glitch8
 ( 9.89% )
- ago
#3
Slight elaboration: you can change the parameter values with the sliders, and the changes will save when when click the Save button. It's the button that lets you set these values as the Strategy default that does not apply to Compiled Strategies, because we cannot go into the compiled code and adjust those default values specified :)
0

Reply

Bookmark

Sort