Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DOM access within indicator

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

    DOM access within indicator

    I am developing an indicator that analyzes Super DOM using a sample provided on this forum.

    The logic utilizes below event to react to changes in DOM
    private void OnMarketDepth(object sender, MarketDepthEventArgs e)
    {….}

    In order to analyze various levels of DOM, I have the following logic:
    if ( e.MarketDataType == MarketDataType.Ask && e.Position == 0)
    ask = e.Price;
    if ( e.MarketDataType == MarketDataType.Bid && e.Position == 0)
    bid = e.Price;

    This logic gets me the nearest bid and ask prices. However, there are a lot of times when values in either ask or bid are 0. This should not happen as there is always ask and bid even of the spread between them widens.

    Why does this happen?

    Is there a better way of coding to retrieve bid and ask then above?

    Thanks,
    redduke

    #2
    Give us a few more weeks and we will officially support a new method named OnMarketDepth() in both indicators and strategies. This will clearly be documumented and include reference samples for building your own price ladder based on calls to this method.
    RayNinjaTrader Customer Service

    Comment


      #3
      Hi Ray,

      Thanks for the info. Does it mean that Ninja 6.5 will be released within next several weeks?

      Thanks,
      Alex

      Comment


        #4
        We release first beta of NT6.5 within the next few weeks.

        Comment


          #5
          Dierk,

          Am I right to assume that DOM and T&S will be supported in 6.5. I think that was what Ray meant when he said few weeks.

          Thanks,
          redduke

          Comment


            #6
            DOM and T&S displays are supported with NT6. Access to level1 and level2 data will be supported with NT6.5.

            Comment


              #7
              Dierk,

              Sorry I meant to say programatic access to DOM and T&S, the display windows of these features are there already of course.

              redduke

              Comment

              Latest Posts

              Collapse

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