I am experiencing a very disturbing behavior with problem loading data that I need help debugging.
I have the latest version of Ninjatrader 7 installed.
Using my own ninjascript strategy.
I am using the eSignal datafeed.
After I open any chart and enable my strategy, then sometimes I loose the ability to load my data for any new chart that I would like to open. The only thing that works is restarting Ninjatrader, and then it works for an undefined amount of time.
This is not stable for me to use for my daily trading.
I am attaching a picture to show you how this problems is occurring, and why I have to restart Ninjatrader to make the data load work again as normal.
Also, video link to show you this error: https://sendvid.com/jk9mhdqm
I have tried everything that you suggested:
1) Repair DB
"
please disconnect all connections in NinjaTrader and go to Control Center-->Tools-->Options-->Data-tab and click Repair DB. Restart NinjaTrader and check if charts load the requested data."
2) Reset instruments
"
If the issue remains, please disconnect all connections in NinjaTrader at Control Center-->File-->Disconnect. Subsequently go to Control Center-->Tools-->Options-->Data-tab and click Reset Instruments. Once finished, please restart NinjaTrader and check if the error remains when historical data is loaded."
3) Removing the DB folder from Documents/Ninjatrader.
"
If the issue remains, please exit NinjaTrader and go to Documents-->NinjaTrader 7-->db and delete the entire cache folder. Start NinjaTrader and check again."
I have went as far as tracing back the error I am getting into the trace file, explained below. There is some kind of error there that I do not know how to trace back to my ninjascript.
Basically, when I loaded the first chart $AUDUSD at 22:42:03 together with my strategy everything was working fine.
Then I closed it and opened a new chart $EURCHF at 22:42:32. This time the data loading error occured and I could NOT see any data in my chart anymore.
Part of attached trace-file:
2016-10-16 22:41:55:427 (1. eSignal Datafeed) Cbi.Account.RestorePositionExecutions1: account='Sim101'
2016-10-16 22:41:55:428 (1. eSignal Datafeed) Cbi.Account.RestorePositionExecutions9: account='Sim101'
2016-10-16 22:41:55:430 (1. eSignal Datafeed) Cbi.Connection.ProcessEventArgs.AccountUpdateEvent Args: Account='Sim101' ItemType='BuyingPower' Currency='Unknown' Value=20000
2016-10-16 22:41:55:433 (1. eSignal Datafeed) Cbi.Connection.ProcessEventArgs.AccountUpdateEvent Args: Account='Sim101' ItemType='CashValue' Currency='Unknown' Value=10000
2016-10-16 22:41:55:433 (1. eSignal Datafeed) Cbi.Connection.ProcessEventArgs.AccountUpdateEvent Args: Account='Sim101' ItemType='ExcessEquity' Currency='Unknown' Value=20000
2016-10-16 22:41:55:433 (1. eSignal Datafeed) Cbi.Connection.ProcessEventArgs.AccountUpdateEvent Args: Account='Sim101' ItemType='InitialMargin' Currency='Unknown' Value=0
2016-10-16 22:41:55:439 (1. eSignal Datafeed) Cbi.Connection.ProcessEventArgs.AccountUpdateEvent Args: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=0
2016-10-16 22:41:55:456 (1. eSignal Datafeed) Cbi.AccountEventArgs.Process: Sim101
2016-10-16 22:41:55:473 (1. eSignal Datafeed) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='BuyingPower' Currency='Unknown' Value=20000
2016-10-16 22:41:55:473 (1. eSignal Datafeed) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='CashValue' Currency='Unknown' Value=10000
2016-10-16 22:41:55:473 (1. eSignal Datafeed) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='ExcessEquity' Currency='Unknown' Value=20000
2016-10-16 22:41:55:473 (1. eSignal Datafeed) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='InitialMargin' Currency='Unknown' Value=0
2016-10-16 22:41:55:473 (1. eSignal Datafeed) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=0
2016-10-16 22:41:55:473 (1. eSignal Datafeed) Cbi.ConnectionStatusEventArgs.Process: Connected Connected
2016-10-16 22:41:55:477 (1. eSignal Datafeed) defaultTimeToClose=4/25/2016 12:00:00 AM flattenAll=False
2016-10-16 22:42:03:511 (1. eSignal Datafeed) Data.Bars.GetBarsNow: instrument='$AUDUSD' from='2016-10-15' to='2016-10-16' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
2016-10-16 22:42:05:492 UI (re)load complete, took 2.4 secs, 42.4 secs after app start
2016-10-16 22:42:14:606 in OnUnhandledThreadException
2016-10-16 22:42:14:608 *************** unhandled exception trapped ***************
2016-10-16 22:42:14:608 Value of '0' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
2016-10-16 22:42:14:608 at System.Windows.Forms.NumericUpDown.set_Value(Decim al value)
at NinjaTrader.Strategy.ChartSlopeTrader._buttonUpdat eRiskParameter_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2016-10-16 22:42:32:949 (1. eSignal Datafeed) Data.Bars.GetBarsNow: instrument='$EURCHF' from='2016-10-15' to='2016-10-16' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
Please help, I can not use NT with my strategy with this error!!!
Comment