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

SuperDOM / Data question...

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

    SuperDOM / Data question...

    I'm creating an AddOn what is a DataGrid which displays information that includes the Last trade (similar to the SuperDOM). However, I notice when viewing along side the SuperDOM, the SuperDOM receives the same info about a couple of milliseconds before my custom datagrid. Is it just something in my programming that I haven't quite nailed yet, or is there something built in that the SuperDOM is first in the chain and we are not able to achieve this at the AddOn stage?

    #2
    Hello funk101,

    Are you doing a bars request in your script and then assigning a handler to the barsRequest.Update event?

    Is the .Update event the event in question that is delayed in comparison to the SuperDOM?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      No BarsRequest. Just MarketData and Depth, so far. And I subscribe to each.

      Comment


        #4
        Hello funk101,

        The subscription to the marketData.Update and marketDepth.Update events are not timed and will trigger as the event happens.

        The output window itself does have an update interval.

        Are you displaying this information in the Output window or are you displaying this in a control on the Addon Window?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          It's a datagrid in an AddOn. So what you're saying is there shouldn't be any difference in the timing of when the SuperDOM column or my addon get the information? Does the SuperDOM utilize Dispatcher.InvokeAsync? Is there any special args like DispatchPriority settings?
          Last edited by funk101; 12-26-2016, 02:12 PM.

          Comment


            #6
            Hello funk101,

            Thank you for your response.

            There should be no difference in the update of the information in the AddOn versus the SuperDOM. The SuperDOM would not perform anything specific in order to be faster (such as forcing refresh).

            If you Print() the values to the Output, are they updating faster?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by gravdigaz6, Today, 11:40 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by MarianApalaghiei, Today, 10:49 PM
            3 responses
            10 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by XXtrader, Today, 11:30 PM
            0 responses
            4 views
            0 likes
            Last Post XXtrader  
            Started by love2code2trade, Yesterday, 01:45 PM
            4 responses
            28 views
            0 likes
            Last Post love2code2trade  
            Started by funk10101, Today, 09:43 PM
            0 responses
            9 views
            0 likes
            Last Post funk10101  
            Working...
            X