Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question on using 'List'

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

    Question on using 'List'

    Hi

    I tried to code my own indicator on NT7 which makes use of a List object. An error was generated when I tried to compile the code specifically with this part.

    List<double> HighLowValues = new List<double>();

    This line of code seems perfectly okay but I do not understand why the compiler generates a message that List can not be located or found. Do I need to add something to the 'using declarations' to make use of lists? Please let me know. Thanks.
    Last edited by mbesha; 05-19-2016, 11:37 AM.

    #2
    Hello mbesha,

    Thank you for writing in.

    Please ensure that you have added the following using statement if you would like to use Lists:
    Code:
    using System.Collections.Generic;
    For more information about this namespace, please take a look at this help guide link: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your prompt and helpful reply. That fixed the prob.

      Comment

      Latest Posts

      Collapse

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