Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The type or namespace name 'List' could not be found !!!

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

    The type or namespace name 'List' could not be found !!!

    NT,

    Ever since I upgraded from in 6.5 subversion 10 to 12, I have not been able to create a NEW indicator that uses the "LIST" directive.

    Existing indicators do not have this problem.

    Here is the code snippet with the problem.

    private List<LadderRow> askRows = new List<LadderRow>();
    private List<LadderRow> bidRows = new List<LadderRow>();

    Is "List" still valid ???

    Thanks,

    RJay
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    #2
    Please be sure you are adding the necessary using statements. I believe you need System.Collections or something similar. Check your old scripts.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I believe it's System.Collections.Generic.

      Comment


        #4
        Lists are identical, just in a different sequence.


        Old File that Works...

        #region Using declarations
        using System;
        using System.Diagnostics;
        using System.Drawing;
        using System.Drawing.Drawing2D;
        using System.ComponentModel;
        using System.Xml.Serialization;
        using NinjaTrader.Cbi;
        using NinjaTrader.Data;
        using NinjaTrader.Gui.Chart;
        #endregion

        New File that Does not work...

        #region Using declarations
        using System;
        using System.ComponentModel;
        using System.Diagnostics;
        using System.Drawing;
        using System.Drawing.Drawing2D;
        using System.Xml.Serialization;
        using NinjaTrader.Cbi;
        using NinjaTrader.Data;
        using NinjaTrader.Gui.Chart;
        #endregion
        RJay
        NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

        Comment


          #5
          Originally posted by NinjaTrader_Dierk View Post
          I believe it's System.Collections.Generic.
          This fixed it.

          Thanks,

          RJay
          RJay
          NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          598 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          557 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X