I just updated to WL8 Build 130. When starting WL, the preference screen appears with the following text:
System.NullReferenceException: Object reference not set to an instance of an object.
at WealthLab8.prefTrading.TestCollection()
at WealthLab8.prefTrading.Populate()
at WealthLab8.cwPreferences..ctor()
at WealthLab8.MainWindow.ShowPreferencesWindow(String startPage)
at WealthLab8.MainWindow.ShowPreferences(String startPage)
at WealthLab8.MainWindow.ResetMessage(Object item, ExecutedRoutedEventArgs counter)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs 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.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Button.OnClick()
at WealthLab.WPF.WLButton.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.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.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)
The above is also listed in the Connection and Exception log.
I am able to load a strategy but when running the backtest, the Connection and Exception log shows, "One or more errors occurred (An error occurred while sending the request"
What do I need to do to rectify or is it possible for me to return to WL8 Build 129 as I cannot use Build 130?
System.NullReferenceException: Object reference not set to an instance of an object.
at WealthLab8.prefTrading.TestCollection()
at WealthLab8.prefTrading.Populate()
at WealthLab8.cwPreferences..ctor()
at WealthLab8.MainWindow.ShowPreferencesWindow(String startPage)
at WealthLab8.MainWindow.ShowPreferences(String startPage)
at WealthLab8.MainWindow.ResetMessage(Object item, ExecutedRoutedEventArgs counter)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs 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.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Button.OnClick()
at WealthLab.WPF.WLButton.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.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.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)
The above is also listed in the Connection and Exception log.
I am able to load a strategy but when running the backtest, the Connection and Exception log shows, "One or more errors occurred (An error occurred while sending the request"
What do I need to do to rectify or is it possible for me to return to WL8 Build 129 as I cannot use Build 130?
Rename
To get you going, try the procedure below keeping in mind that normally you should not manually edit the Settings.txt file.
1. File menu > Open Wealth-Lab User Data Folder
2. Close Wealth-Lab (important)
3. Find the Settings.txt file and make a copy so that you can return to it, if necessary.
4. Open Settings.txt in an editor.
5. Search for the lines that start with a "TT_"prefix.
6. Delete those lines and save the file.
Try again. If it's okay, you'll need to re-establish your Preferences > Trading > Trading Thresholds for each account. Otherwise, you can close WL and reinstate your original Settings.txt file, awaiting further guidance from Glitch.
1. File menu > Open Wealth-Lab User Data Folder
2. Close Wealth-Lab (important)
3. Find the Settings.txt file and make a copy so that you can return to it, if necessary.
4. Open Settings.txt in an editor.
5. Search for the lines that start with a "TT_"prefix.
6. Delete those lines and save the file.
Try again. If it's okay, you'll need to re-establish your Preferences > Trading > Trading Thresholds for each account. Otherwise, you can close WL and reinstate your original Settings.txt file, awaiting further guidance from Glitch.
I have checked the Settings.txt file. However, there are no lines with TT_ in the file.
I can recreate the exception by opening Wealth-Lab 8 Build 130 and then clicking the Preferences button. I get the same stack trace as reported by Elystan. I checked the Settings.txt file by doing a case-insensitive search for TT_. There is no text TT_.
Edit: If I OK the exception dialog and then click the Preferences button again then the Preferences appear.
Edit: If I OK the exception dialog and then click the Preferences button again then the Preferences appear.
Elystan, the log item you're seeing is not related to the Preferences exception. The Preferences exception shouldn't impact backtesting, although I do have the exception corrected for Build 131.
Can you click in the exception in the log and paste the resulting stack trace or show a screen shot?
Can you click in the exception in the log and paste the resulting stack trace or show a screen shot?
I released a Build 131 which fixes the Trading Threshold issues.
The exception in the log (under NullReferenceException) is as follows:
at WealthLab8.prefTrading.TestCollection()
at WealthLab8.prefTrading.Populate()
at WealthLab8.cwPreferences..ctor()
at WealthLab8.MainWindow.ShowPreferencesWindow(String startPage)
at WealthLab8.MainWindow.ShowPreferences(String startPage)
at WealthLab8.MainWindow.ResetMessage(Object item, ExecutedRoutedEventArgs counter)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs 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.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Button.OnClick()
at WealthLab.WPF.WLButton.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.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.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)
at WealthLab8.prefTrading.TestCollection()
at WealthLab8.prefTrading.Populate()
at WealthLab8.cwPreferences..ctor()
at WealthLab8.MainWindow.ShowPreferencesWindow(String startPage)
at WealthLab8.MainWindow.ShowPreferences(String startPage)
at WealthLab8.MainWindow.ResetMessage(Object item, ExecutedRoutedEventArgs counter)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs 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.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Button.OnClick()
at WealthLab.WPF.WLButton.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.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.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)
OK, try Build 131.
The problem is resolved by updating to Build 131.
However, I have encountered the following problem when running a backtest which was reported a while ago:
Timestamp Source Message Exception
"6/8/2025 23:08:10:546" "WL8" "Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)" "One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request."
6/8/2025 23:08:10:546
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)
AggregateException
One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Writers.GlobalWriter.LogoutRecord(String v, String ord, Boolean istemplate, String init2)
at WealthLab.Writers.GlobalWriter.PatchRecord(String reference, Boolean removeresult, String util, DateTime config2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
I don't really require the calculation of interest on cash. Is there a way to turn it off?
However, I have encountered the following problem when running a backtest which was reported a while ago:
Timestamp Source Message Exception
"6/8/2025 23:08:10:546" "WL8" "Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)" "One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request."
6/8/2025 23:08:10:546
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)
AggregateException
One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Writers.GlobalWriter.LogoutRecord(String v, String ord, Boolean istemplate, String init2)
at WealthLab.Writers.GlobalWriter.PatchRecord(String reference, Boolean removeresult, String util, DateTime config2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
I don't really require the calculation of interest on cash. Is there a way to turn it off?
Yes, that indicates WL8 wasn’t able to access treasury interest rates from the FRED website site. It happens occasionally and we log the error, but should
not prevent backtesting. It could be a transitory issue but if it persists we can look into ways to resolve or mitigate it.
not prevent backtesting. It could be a transitory issue but if it persists we can look into ways to resolve or mitigate it.
Yes, the backtest function still works albeit with a short delay.
However, I have just installed WL8 B131 on a new laptop and running the same strategy with the same setting results in a 7 min delay each time and two error messages in the log as below:
7/8/2025 17:19:30:895
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)
AggregateException
One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Writers.GlobalWriter.LogoutRecord(String v, String ord, Boolean istemplate, String init2)
at WealthLab.Writers.GlobalWriter.PatchRecord(String reference, Boolean removeresult, String util, DateTime config2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
7/8/2025 17:21:11:013
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (A task was canceled.)
AggregateException
One or more errors occurred. (A task was canceled.) Inner Exception: A task was canceled.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Writers.GlobalWriter.LogoutRecord(String v, String ord, Boolean istemplate, String init2)
at WealthLab.Writers.GlobalWriter.PatchRecord(String reference, Boolean removeresult, String util, DateTime config2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
However, I have just installed WL8 B131 on a new laptop and running the same strategy with the same setting results in a 7 min delay each time and two error messages in the log as below:
7/8/2025 17:19:30:895
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)
AggregateException
One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Writers.GlobalWriter.LogoutRecord(String v, String ord, Boolean istemplate, String init2)
at WealthLab.Writers.GlobalWriter.PatchRecord(String reference, Boolean removeresult, String util, DateTime config2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
7/8/2025 17:21:11:013
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (A task was canceled.)
AggregateException
One or more errors occurred. (A task was canceled.) Inner Exception: A task was canceled.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Writers.GlobalWriter.LogoutRecord(String v, String ord, Boolean istemplate, String init2)
at WealthLab.Writers.GlobalWriter.PatchRecord(String reference, Boolean removeresult, String util, DateTime config2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
I have updated to WL8 B132 but unfortunately the above problem on interest rates still persists. I have also tried building a new strategy and testing on a different data set but keep running into the same issue. WL8 freezes for around 6 - 7 minutes each time I run a backtest which is really quite a long period of time. Is there any way to get around this issue?
The latest error log:
12/8/2025 11:13:13:981
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)
AggregateException
One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Core.Exceptions.AttrInitializer.SetPrinter(String value, String attr, Boolean isutil, String selection2)
at WealthLab.Core.Exceptions.AttrInitializer.CollectPrinter(String instance, Boolean movesecond, String dic, DateTime cust2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
12/8/2025 11:14:54:077
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (A task was canceled.)
AggregateException
One or more errors occurred. (A task was canceled.) Inner Exception: A task was canceled.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Core.Exceptions.AttrInitializer.SetPrinter(String value, String attr, Boolean isutil, String selection2)
at WealthLab.Core.Exceptions.AttrInitializer.CollectPrinter(String instance, Boolean movesecond, String dic, DateTime cust2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
The latest error log:
12/8/2025 11:13:13:981
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (An error occurred while sending the request.)
AggregateException
One or more errors occurred. (An error occurred while sending the request.) Inner Exception: An error occurred while sending the request.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Core.Exceptions.AttrInitializer.SetPrinter(String value, String attr, Boolean isutil, String selection2)
at WealthLab.Core.Exceptions.AttrInitializer.CollectPrinter(String instance, Boolean movesecond, String dic, DateTime cust2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
12/8/2025 11:14:54:077
WL8
Exception calculating Risk Free Rate of Return: One or more errors occurred. (A task was canceled.)
AggregateException
One or more errors occurred. (A task was canceled.) Inner Exception: A task was canceled.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at WealthLab.Core.WLWebClient.DownloadString(String url)
at WealthLab.Core.Exceptions.AttrInitializer.SetPrinter(String value, String attr, Boolean isutil, String selection2)
at WealthLab.Core.Exceptions.AttrInitializer.CollectPrinter(String instance, Boolean movesecond, String dic, DateTime cust2)
at WealthLab.Core.FredFactory.GetFred(String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Populate()
at WealthLab.Indicators.Fred..ctor(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.Fred.Series(BarHistory bars, String series, Boolean getDescription, String units)
at WealthLab.Indicators.USTYield.Populate()
at WealthLab.Indicators.USTYield..ctor(YieldPeriod yp)
at WealthLab.Backtest.Backtester.get_RiskFreeRateOfReturn()
--------
What if you uncheck "Use UST Yield" in Preferences > Backtest and restart WL8?
The "Use UST Yield" function is unchecked in my backtests. I discovered that the backtest will freeze if that function is checked. Have also tried changing the values for "Interest on Cash" and the "Margin Loan Rate" but that doesn't seem to make any difference.
I'll work on a way to avoid trying to hit the FRED web site for interest rates in the backtester. So far you're the only one reporting this but let's see what we can do to mitigate it for the next Build.
Your Response
Post
Edit Post
Login is required