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

OnMarketDepth stops generating data

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

    #16
    Hi ChrisL

    I have tried on 3 different machines with different internet connections and the same thing always happens to me, with respect to the test of printing the DateTime it is the same if you print what you print within the OnMarketDepth method, at some point it stops entering the method therefore it doesn't do anything you put it there, as seen in the video,


    Here I attach the log-trace of one of the other machines in which I tested


    Thank you so much.
    Last edited by NinjaTrader_ChrisL; 06-16-2021, 11:20 AM.

    Comment


      #17
      Originally posted by 7robert View Post
      Hi ChrisL

      I have tried on 3 different machines with different internet connections and the same thing always happens to me, with respect to the test of printing the DateTime it is the same if you print what you print within the OnMarketDepth method, at some point it stops entering the method therefore it doesn't do anything you put it there, as seen in the video,


      Here I attach the log-trace of one of the other machines in which I tested


      Thank you so much.
      Hi Robert,

      I have seen an overloaded NT8 demonstrate similar loss of continuation.

      If you have not yet done so might:
      1. Create new workspace with only one chart. Try and remove all dependencies to non-original DDL or other objects. Do a full reboot of NT8 and try your reliability test again.
      2. Still no Joy? Create a new workspace on a clean new NT8 install documents\Ninjtrader directory, free all all thrid party DLLs and anything that is not required to run the strategy reliability test again.
      The goal being to identify there is a client-side contribution and can start to trouble shoot that or identify it is for sure Not at all client side issue within the scope of the PC or VPS environment.

      Best of Luck,
      HedgePlay

      Comment


        #18
        Hello Robert, thanks for your reply.

        If you are seeing this problem occur on your end there is something wrong with either your internet connection, Windows environment, Antivirus, or a non-clean NinjaTrader 8 folder environment that is causing the problem. I ran my test script (attached) for over two hours and OnMarketData is not stopping. I removed your log files after downloading them because they contain personal info you might not want to have public. In the logs you posted I am seeing a lot of third party dlls loading, so the environment you are testing is not a clean "factory setting" environment as suggested to test on.

        Best regards,
        -ChrisL
        Attached Files
        Chris L.NinjaTrader Customer Service

        Comment


          #19

          Hi ChrisL

          First of all thank you very much, in this way I have already tried it and it never stops entering the OnMarketDepth method, the problem I have now is that since I am not using the marketDepth.Update + = OnMarketDepth I don't see a way to get a snapshot Of the 10 levels, I would like to know if you could tell me some way in which I can obtain said snapshot without doing the Update, because the way you gave it to me is the OnMarketDepth method without the update and I think I can only obtain the values ​​of some level when it generates any movement.

          Thank you so much.

          Comment


            #20
            Hi Robert, thanks for your reply.

            If you are working in a Strategy object then using OnMarketDepth will be the recommended method to use rather than the Addon style event. We have a sample here that demonstrates how to capture each level of market depth that is provided by the data provider:

            https://ninjatrader.com/support/help...vel_ii_dat.htm

            Best regards,
            -ChrisL
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            3 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            6 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Working...
            X