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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X