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 ageeholdings, Today, 07:43 AM
      0 responses
      2 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X