Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access DOM columns

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

    Access DOM columns

    How to access the number in SuperDOM different columns?
    i.e. I want to print the numbers in SELL column...
    I tried with OnMarketDepth(MarketDepthEventArgs e), but it prints different numbers.

    also, how can i change the color of the particular cell under "sell" column?

    i.e. Click image for larger version  Name:	sGKbMhW.png Views:	1 Size:	26.2 KB ID:	1063233
    Last edited by ttodua; 07-08-2019, 01:35 AM.

    #2
    Hello TazoTodua,

    What did you try that was not working? Was it similar to the SampleLevelII sample from the help guide? https://ninjatrader.com/support/help...vel_ii_dat.htm

    I would have no suggestion on accessing the data once it has been placed into the dom's UI, it would be very inefficient to gather the data that way as you would need to do invokeasync to access the WPF controls in the mutithreaded context. The controls data may have changed or may not still be available by the time your code is run as the dom updates very fast. It would only be suggested to work in OnMarketDepth if you wanted to gather this data.

    The sample is the suggestion on how to get this data, however depending on the frequency the data is being printed out it will only match the doms visual output directly sometimes.



    I look forward to being of further assistance.

    Comment


      #3
      Jesse many thanks.
      However, you missed 2nd question... how can i plot inside the other columns?

      When I tried to use
      Values[0][0] =...
      PlotBrushes[0] .. .
      it affected the main column, and how can i affect side columns?

      Comment


        #4
        Also, third question - how to get the "# number of market depth levels" amount (either it's set to 10 or whatever. in SuperDom properties... I mean the number of rows)?
        I tried in inside OnMarketDepth, but the `e` argument just provides one-by-one... and how can i know all of the rows data?
        Last edited by ttodua; 07-09-2019, 08:33 AM.

        Comment


          #5
          Hello TazoTodua,

          If you want different placement or custom visuals in the superdom column you would need to not use an indicator and create a column instead. There is no way to change placement from an indicator.

          For the number of rows, there is no way that I am aware of for this. The superdom properties are not a documented object at this point.


          I look forward to being of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X