2023-11-28 10:58:31:609 System.Threading.LockRecursionException: Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock.
Where do i look to fix it in the strategy?
2023-11-28 10:54:30:762 (Playback) Cbi.Account.PositionUpdateCallback: instrument='NQ 12-23' account='Playback101' avgPrice=15164.5 quantity=1 marketPosition=Long operation=Add
2023-11-28 10:58:31:571 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: The object was not in the correct state to process the method. '
2023-11-28 10:58:31:606 *************** unhandled exception trapped ***************
2023-11-28 10:58:31:606 Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock.
2023-11-28 10:58:31:609 System.Threading.LockRecursionException: Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock.
at System.Threading.ReaderWriterLockSlim.TryEnterWrit eLockCore(TimeoutTracker timeout)
at System.Threading.ReaderWriterLockSlim.TryEnterWrit eLock(TimeoutTracker timeout)
at NinjaTrader.Data.BarsSeries.Dispose()
at NinjaTrader.Data.Bars.Dispose(Boolean disposing)
at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Se tState(State state)
at NinjaTrader.Gui.Chart.ChartControl.Cleanup()
at NinjaTrader.Gui.Chart.ChartTab.Cleanup()
at NinjaTrader.Gui.Tools.NTWindow.CleanTabs(TabContro l tabControl, Int32 idx)
at NinjaTrader.Gui.Tools.NTWindow.OnClosed(EventArgs e)
at System.Windows.Window.WmDestroy()
at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilte rMessage(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.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Comment