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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X