Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Number of bars per session

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

    #16
    Hello matt_,

    Testing this script, it does appear you are adding elements to the myArray array correctly.

    Try printing the values for this.
    Code:
    for (int i = 0; i < myArray.Count; i++)
    {
    	Print(string.Format("i: {0} | myArray[{0}]: {1}", i, myArray[i] ));
    }
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Thank you Chelsea
      This works well, it may be me but could you advise why there is a count up to and before the for loop there is nothing in the code for this to print, this is why I thought the array was not holding the total bars per session value?
      Attached Files

      Comment


        #18
        Hello matt_,

        Testing your script, I am not able to reproduce that behavior.

        Are you certain the print is not coming from another script?

        Are you certain that you have compiled this script since last making changes?
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Hi Chelsea
          My mistake it was another script sorry about that and thanks for all the help

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by WHICKED, Today, 12:45 PM
          2 responses
          16 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by GussJ, 03-04-2020, 03:11 PM
          15 responses
          3,272 views
          0 likes
          Last Post xiinteractive  
          Started by Tim-c, Today, 02:10 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          2 views
          0 likes
          Last Post Taddypole  
          Started by chbruno, 04-24-2024, 04:10 PM
          4 responses
          51 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Working...
          X