Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Data loading error, NT does not load data correctly after a while

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Data loading error, NT does not load data correctly after a while

    Dear Ninjatrader,

    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!!!
    Attached Files

    #2
    Regarding ...
    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)

    I have checked and all the buttons I use are within the Minimum and Maximum range.

    Comment


      #3
      Hello warcious,

      Please send an email to platformsupport [at] ninjatrader [dot] so that we may request your full log and trace files.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hello NinjaTrader_ChelseaB,

        I have already attached the log and trace file concerned, but I have also sent as requested an email directly from NT together with the log and trace files.

        Thanks,
        Warcious

        Comment


          #5
          Hello Warcious,

          I will be calling you at 8:30 ET today.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by FrazMann, Today, 11:21 AM
          2 responses
          6 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by rjbtrade1, 11-30-2023, 04:38 PM
          2 responses
          80 views
          0 likes
          Last Post DavidHP
          by DavidHP
           
          Started by Spiderbird, Today, 12:15 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by lorem, Yesterday, 09:18 AM
          5 responses
          18 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          12 responses
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X