Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

calculate value during a time period?

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

    calculate value during a time period?

    Hi,

    Is it possible to calculate values, such as the HIGH price between two particular time periods...for example between 12:00-16:00 GMT and store this in a variable? Thanks in advance.

    #2
    There is no method for this in NinjaScript layer. You would have to self calculate by checking bar times and storing values appropriately.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thank you. So I guess something like this might be appropriate?

      if(ToTime(Time[0]) == 160000)
      {
      //do something to check for high price back correct # of bars (based upon chart timeframe) to 12:00...
      }

      Comment


        #4
        Yes, something like that... You are on the right track.
        RayNinjaTrader Customer Service

        Comment


          #5
          Thanks, I guess I'll work with it then...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          333 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X