Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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, 10: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 WHICKED, Today, 04:10 PM
      0 responses
      7 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Trasss_Kenneth, Today, 01:49 PM
      2 responses
      37 views
      0 likes
      Last Post bltdavid  
      Started by Newtrader101, Today, 03:22 PM
      2 responses
      14 views
      0 likes
      Last Post Newtrader101  
      Started by johnMoss, Today, 01:43 PM
      5 responses
      39 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by qs121, Today, 12:24 PM
      2 responses
      46 views
      0 likes
      Last Post qs121
      by qs121
       
      Working...
      X