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 argusthome, Yesterday, 10:06 AM
      0 responses
      17 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      16 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      9 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      36 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X