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 nandhumca, Yesterday, 03:41 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by The_Sec, Yesterday, 03:37 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by vecnopus, Today, 06:15 AM
          0 responses
          1 view
          0 likes
          Last Post vecnopus  
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          5 views
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          27 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X