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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        146 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        284 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X