Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketDepth documentation

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

    MarketDepth documentation



    Code:
    marketDepth = new MarketDepth<MarketDepthRow>(instrument);
    I think instrument should be Instrument

    #2
    I'm going to say no. It's not the spec we are looking at, but code we are looking at.



    marketdata shows "value" being used, instead of "instrument".

    Comment


      #3
      Your link shows markedata, i'm looking at marketdepth in an indicator. When I tried compiling it in an indicator it was giving me an error. I wasn't sure if that makes a difference or not.

      Comment


        #4
        Originally posted by habibalex View Post
        http://ninjatrader.com/support/helpG...arketdepth.htm

        Code:
        marketDepth = new MarketDepth<MarketDepthRow>(instrument);
        I think instrument should be Instrument
        If you're writing from an Indicator/Strategy, that would work. In the context of an Add-On, the Instrument object is not readily available and would have failed as well. The examples may from time to time use placeholder variables which may not compile if you just copy and paste the example into your own script.

        I edited the example for both OnMarketData and OnMarketDepth to clarify a little further in the comments.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X