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 StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,966 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      4 views
      0 likes
      Last Post rbeckmann05  
      Started by rhyminkevin, Today, 04:58 PM
      4 responses
      54 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by iceman2018, Today, 05:07 PM
      0 responses
      5 views
      0 likes
      Last Post iceman2018  
      Started by lightsun47, Today, 03:51 PM
      0 responses
      8 views
      0 likes
      Last Post lightsun47  
      Working...
      X