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, 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 rt61968, 02-17-2018, 05:24 PM
      3 responses
      2,733 views
      0 likes
      Last Post MasterEtrad3  
      Started by nuobo, Today, 07:43 PM
      0 responses
      1 view
      0 likes
      Last Post nuobo
      by nuobo
       
      Started by ETFVoyageur, Today, 02:04 PM
      3 responses
      21 views
      0 likes
      Last Post ETFVoyageur  
      Started by cre8able, Today, 06:18 PM
      0 responses
      6 views
      0 likes
      Last Post cre8able  
      Started by ETFVoyageur, Today, 06:05 PM
      0 responses
      7 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X