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 Rapine Heihei, Today, 08:19 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        8 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        98 views
        1 like
        Last Post caryc123  
        Working...
        X