• 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

Serie from certain time?

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

    Serie from certain time?

    Hi,
    I need to get data serie from certain time in past, for example
    typical from 15:00 GMT and 60 bars back.
    How could I achieve this?
    Thanks,
    Igor

    #2
    Hello igorvlassov,

    Thank you for the post.

    I wanted to clarify what you are asking here, are you saying you want to retrieve the bar from 15:00 and then 60 bars before that, or either 15:00 or 60 bars back? Can you detail what specifically you wanted to do?

    60 bars back would be pretty easy depending on the series, that's just 60 BarsAgo.

    If you wanted to get a bar for a specific time you can do that as well assuming you know the exact time stamp. While processing bars, you could check if the Time[0] object is that time and then do your logic. Otherwise, if you wanted to pick this bar at any time by its time, you can do that as well using GetBarIdxByTIme. I have provided a few links below on these items.


    https://ninjatrader.com/support/help...etBarIdxByTIme

    https://ninjatrader.com/support/help...sub=getvalueat

    https://ninjatrader.com/support/help...ightsub=totime

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Dear Jessie,
      thanks a lot for the clarification.
      Seems GetBarIdxByTIme is exactly what I need.
      Igor

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Yaron, Today, 04:01 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by corman, Today, 04:28 AM
      0 responses
      8 views
      0 likes
      Last Post corman
      by corman
       
      Started by schwamm, Today, 04:26 AM
      0 responses
      7 views
      0 likes
      Last Post schwamm
      by schwamm
       
      Started by elliot5, Today, 04:20 AM
      1 response
      7 views
      0 likes
      Last Post elliot5
      by elliot5
       
      Started by aviat72, Today, 12:41 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X