Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 DLL methods

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

    NT7 DLL methods

    Hello.
    I use NinjaTrader DLL library to import my own data into NT.
    I use Last,Bid,Ask methods in different windows threads.
    Sometimes data events occur at one time and imported data are corrupting - price =0.
    I try use locks for DLL methods but at result data fill with big delays.
    Any suggestion about this...

    #2
    Hello,

    Thanks for the forum post.

    Only recommendation I could have would be to import only one type of data at a time.

    Import Last, then import ask, then import bid.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      I tried it and it work too slow...
      See picture


      Uploaded with ImageShack.us
      ESZ1 delayed for 9 seconds!!!
      The simplest way to decide problem - use bad tick filter but it not work for this situations.

      Comment


        #4
        Hello,

        What I was referensing was only for back filling data.

        Are you doing live data? In which case it wouldn't matter what events you through NT will collect them without error.

        How specifically are you calling the events. When you call the event in your application are you doing any checking to make sure no to throw a last/bid/ask event with a value of 0?

        I look forward to assisting you further.
        BrettNinjaTrader Product Management

        Comment


          #5
          Yes, it is live data from one of my data feed.
          Before calling last/bid/ask I check it for zero values.
          Also I saw that when I tried fill 1k+ instruments into ninjatrader became use at full of one cpu core.
          I think that tight place is DLL

          Comment


            #6
            Hello,

            So does this occur with live data only or historical data only?

            I look forward to assisting you further.
            BrettNinjaTrader Product Management

            Comment


              #7
              Only for live data

              Comment


                #8
                Hello,

                I would expect performance issues with pushing this much data into NT as we run into the same performance issues with other providers. This is a lot of live instruments to be subscribed for live tick data.

                Furthermore I'm concearned about something in your multi threading causing issues. If you do no multi threading does the 0 tick still happen? If so how often and when?

                I look forward to assisting you further.
                BrettNinjaTrader Product Management

                Comment


                  #9
                  Other my single thread application working correctly without any errors like this.

                  Comment


                    #10
                    Hello,

                    Would recommend in this case only using single threading on this since there appears to be something going on with the multi threads that unfortunately I would not be able to support.

                    Let me know if I can be of further assistance.
                    BrettNinjaTrader Product Management

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    574 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    332 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    101 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    553 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    551 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X