Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

time value

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

    time value

    Hi
    I need to get the price value at a specific time today and store the difference between that value and current price into the following day but before the time when i will need the new time value for the second day . how do i get this done?

    thanks

    #2
    Hi trader413, have you seen the reference sample titled Getting indicator values from a specified time? The same idea would apply to get the price value for a specified time.
    AustinNinjaTrader Customer Service

    Comment


      #3
      I not sure that will work because I am using volume bars.

      Comment


        #4
        It will work for volume bars. GetBar() will return the bar number of the first bar that occurs after the time you specify (if the exact bar time does not exist). So, if you specify 9:30:00AM but there is only a 9:30:03 bar, that :03 bar number would be returned.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        573 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        575 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X