Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Array ninjascript tutorial

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

    Array ninjascript tutorial

    Hi,

    I am looking to learn how to work with arrays in ninjascript. Right now i am trying to figure out the logic with other indicators but is a very though work for me since i am not a programmer.

    I wonder if someone could give me some tips or something to learn how to set and call arrays in an indicator or strategy.

    Thank you,

    #2
    Hello,

    Thank you for the note.

    There are already price data arrays set up in the script. Please review this tutorial series on developing indicators and strategies to develop a good understanding of how to develop NinjaScripts. The first section of the indicator tutorial series goes over how to work with these price data arrays.




    You can also use any .NET facility that has been provided by Microsoft if you want to create your own data structures::
    Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.


    Please let us know if we may be of any further assistance.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Dear Chris,

      First at all, let me thank you for you response

      I have no problem to work with Price arrays, but my problem is if I want to create an array. I am interested in mark the highs and lows, for instance, and I would like to make an array with highs and lows to compare the current high with the before high.

      (I know that what I told is what the swing indicator does, but I want to make it by myself. I have been trying reverse engineering but i can not figure out how to do it)

      I don't know if I have explained myself right.

      Thank you,

      Comment


        #4
        Hello.

        Thanks for the reply.

        You can create your own DataSeries object that you can customize. These structures will always have an equal amount of indices to the primary data series that the script is running on.

        https://ninjatrader.com/support/help...dataseries.htm - AddDataSeries
        https://ninjatrader.com/support/help.../?iseriest.htm - Series interface.

        Please let us know if you have any questions.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hi Chris,

          Thank you for your response. I am trying to figure out this, if i can not solve it I'll write you again.

          Thank you!!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by funk10101, Today, 09:43 PM
          0 responses
          6 views
          0 likes
          Last Post funk10101  
          Started by pkefal, 04-11-2024, 07:39 AM
          11 responses
          37 views
          0 likes
          Last Post jeronymite  
          Started by bill2023, Yesterday, 08:51 AM
          8 responses
          44 views
          0 likes
          Last Post bill2023  
          Started by yertle, Today, 08:38 AM
          6 responses
          26 views
          0 likes
          Last Post ryjoga
          by ryjoga
           
          Started by algospoke, Yesterday, 06:40 PM
          2 responses
          24 views
          0 likes
          Last Post algospoke  
          Working...
          X