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 Tim-c, Today, 02:10 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        2 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        50 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        10 responses
        400 views
        1 like
        Last Post beobast
        by beobast
         
        Started by lorem, Yesterday, 09:18 AM
        5 responses
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X