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 AlessioCianini12, Today, 01:38 AM
      0 responses
      15 views
      0 likes
      Last Post AlessioCianini12  
      Started by nandhumca, Yesterday, 11:54 PM
      0 responses
      18 views
      0 likes
      Last Post nandhumca  
      Started by nandhumca, Yesterday, 11:51 PM
      0 responses
      18 views
      0 likes
      Last Post nandhumca  
      Started by ezrollin, Yesterday, 11:48 PM
      2 responses
      17 views
      0 likes
      Last Post ezrollin  
      Started by jjanguda, Yesterday, 10:15 PM
      0 responses
      19 views
      0 likes
      Last Post jjanguda  
      Working...
      X