Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error in Market Depth Example

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

    Error in Market Depth Example

    I was going through the Add-On functions in the HelpGuide and found the "MarketDepth" description has a small Typo. I highlighted the error below in red, I think this should be "marketDepth" rather than "marketData".

    Link to page:



    Code:
    /* Example of subscribing/unsubscribing to market depth from an Add On. The concept can be carried over
     to any NinjaScript object you may be working on. */
     public class MyAddOnTab : NTTabPage
     {
          private MarketDepth<MarketDepthRow> marketDepth;
      
          public MyAddOnTab()
          {
               // Subscribe to market data. Snapshot data is provided right on subscription
               marketDepth = new MarketDepth<MarketDepthRow>(value);
               [COLOR=red]marketData[/COLOR].Update += OnMarketDepth;
          }

    #2
    Just another thought for clarity, you might want to change "value" to "instrument" so it is clearer what is passed into the constructor. This goes for the MarketData() description as well.

    Comment


      #3
      Thank you for your feedback -- good catch. I'll make these changes, and they will be published with the next release of the help guide.
      Dave I.NinjaTrader Product Management

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, Today, 06:46 AM
      0 responses
      8 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, Yesterday, 05:21 PM
      0 responses
      14 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      15 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      82 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      48 views
      0 likes
      Last Post PaulMohn  
      Working...
      X