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 zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      150 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post tkaboris  
      Working...
      X