• 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 ketoproplus, Today, 05:08 AM
      0 responses
      1 view
      0 likes
      Last Post ketoproplus  
      Started by asmmbillah, Today, 03:55 AM
      0 responses
      1 view
      0 likes
      Last Post asmmbillah  
      Started by cmarkb, Today, 12:04 AM
      0 responses
      4 views
      0 likes
      Last Post cmarkb
      by cmarkb
       
      Started by supernova0219, Yesterday, 07:48 PM
      0 responses
      7 views
      0 likes
      Last Post supernova0219  
      Started by qwfxny, Yesterday, 07:20 PM
      0 responses
      9 views
      0 likes
      Last Post qwfxny
      by qwfxny
       
      Working...
      X