• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 bosajin, Today, 09:06 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Buterol, Today, 09:13 AM
          0 responses
          2 views
          0 likes
          Last Post Buterol
          by Buterol
           
          Started by billythekid72, Today, 09:08 AM
          0 responses
          1 view
          0 likes
          Last Post billythekid72  
          Started by joevieira, Today, 08:47 AM
          0 responses
          15 views
          0 likes
          Last Post joevieira  
          Started by Matts7, Today, 08:27 AM
          2 responses
          23 views
          0 likes
          Last Post Matts7
          by Matts7
           
          Working...
          X