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

delay in receiving data

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

    delay in receiving data

    demo.
    After the release of the news, the volatility increases, and the bar update method gives out bars with a delay of about 5-15 seconds.
    on normal days, the data arrives at the correct time.
    I want to clarify, is this how it should be on a demo account?​

    #2
    Hello Danila,

    Thank you for your post.

    I suspect that what you have described is a behavior we refer to as "chart rendering delay" which can be caused by even a single "bad" configuration in your workspace or by having so many active calculations in the platform that you are overloading your PC's available resources for the platform. Rendering delay is especially common during moments of high volatility in the market. We have a basic list of performance tips in our help guide that could help you to optimize the performance and loading of your charts:
    https://ninjatrader.com/support/help...ance_tips2.htm

    Some of the most common items I have seen are related to having too many days loading on your charts; you may review the number of days to load with these steps:
    • Right-click a chart and select Data Series
    • In the "Time Frame" section reduce the number of days to load
    • Click OK to save your changes and test
    Another item that can place a heavier load on your system is the method of calculation for indicators on your charts. Use these steps to review/adjust the configuration:
    • Right-click a chart and select Indicators
    • For each "configured" indicator on the bottom left-hand list, double-check the "Calculation" property to the right. Unless an indicator requires On Each Tick, please try changing to On Price Change or On Bar Close as these calculations are less resource-intensive than On Each Tick
    • Click OK to save any changes
    ​Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Hello Emily. Thanks for your reply.

      Charts are displayed correctly (there is no delay).
      I have no indicators.
      The strategy receives only bar data and sends orders.
      There is no logic in the strategy that would take time to calculate.
      The strategy is configured to receive data on the closing of the bar.
      only 8 charts are open. There is no load on my system at all.
      My computer is powerful. RAM 128GB and a processor with 10 cores and 20 threads.
      Bar time delay, which I get from the strategy's OnBarUpdate() method.
      Moreover, with a decrease in volatility, this delay does not disappear.
      The delay disappears only with the onset of the next session.​​

      Comment


        #4
        Hello Danila,

        Thank you for your reply.

        In order to further investigate, please send me your log and trace files so that I may look into what occurred.

        You can do this by going to the Control Center-> Help-> Email Support. Please include "ATTN Emily" in the subject and body of the request.

        Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default. The request will open up a separate support ticket so we may continue to correspond via email rather than the forum.

        I look forward to resolving this with you.​
        Emily C.NinjaTrader Customer Service

        Comment


          #5
          Hello Emily.

          I'm sorry, but I write here. reason no need to send log files.
          I looked at the log file for that day.
          it does not contain any error data.
          this .log has the usual connection time data,
          what libraries are used, data on orders and running strategies.
          there are no errors. from the word at all. regular log file.

          during the delay, I did a debug.
          error source: data from the onBarUpdate() method for the bar at the close.
          a mistake on your side. the data that comes from the onBarUpdate() method is incorrect on news days, just after the news release.
          at other times and days, the data is correct.
          CQG demo supplier.
          When the next day with the news after their release, check the time of arrival of the bars by CQG supplier.
          and you will see this delay.

          Thursday 8:30 AM​
          Last edited by Danila; 11-06-2022, 08:20 AM.

          Comment


            #6
            Hello Danila,

            Thank you for your patience.

            Please try the following test and confirm the results:
            • During the moments where the data appears to be delayed, please open a SuperDOM window
              • Control Center > New > SuperDOM
              • Select the same instrument (and expiry if applicable) as you are using in your chart(s)
            • Compare the price in the SuperDOM with the bid, ask, and last prices shown in your chart
              • Do the prices match, or does it appear that the chart price is behind the SuperDOM price?
            I look forward to hearing the results.
            Emily C.NinjaTrader Customer Service

            Comment


              #7
              Hello Emily
              I will fulfill your request on the day of the news release.

              Comment


                #8
                Hello Emily
                There was no delay today. I will watch it in the next news days.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ageeholdings, Today, 07:43 AM
                0 responses
                7 views
                0 likes
                Last Post ageeholdings  
                Started by pibrew, Today, 06:37 AM
                0 responses
                4 views
                0 likes
                Last Post pibrew
                by pibrew
                 
                Started by rbeckmann05, Yesterday, 06:48 PM
                1 response
                14 views
                0 likes
                Last Post bltdavid  
                Started by llanqui, Today, 03:53 AM
                0 responses
                6 views
                0 likes
                Last Post llanqui
                by llanqui
                 
                Started by burtoninlondon, Today, 12:38 AM
                0 responses
                12 views
                0 likes
                Last Post burtoninlondon  
                Working...
                X