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 Mokaru Zen, Today, 01:20 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by dgee949, Yesterday, 06:26 PM
      1 response
      37 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by dgee949, Yesterday, 05:58 PM
      1 response
      39 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by papaoutai, Yesterday, 08:56 AM
      1 response
      42 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by grzltn, Today, 02:18 AM
      0 responses
      20 views
      0 likes
      Last Post grzltn
      by grzltn
       
      Working...
      X