Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetTimeByBarIdx

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

    GetTimeByBarIdx

    Hi,

    With GetBar I have solved the problem with ChartBars.GetBarIdxByTime"". Ist good!

    Now, I get another problem with a similar statement:
    "ChartBars.GetTimeByBarIdx"

    I'm using this statement (instead of Times[tf][n]) when I want to draw a figure into "future" bars.

    First I calculate Future Time with:
    ChartBars.GetTimeByBarIdx(ChartControl, CurrentBars[0]+5) -> time 5 Bars ahead in the future
    and then I draw using Time instead of Bars.

    How could I calculate Future Time equivalent to "n" bars ahead but without using this
    "ChartBars.GetTimeByBarIdx(ChartControl, CurrentBars[0]+5)"?

    Thanks!!

    #2
    Hello artson,

    Thank you for your post.

    I've made a new thread for this new inquiry that is not related to your previous inquiry.

    Please note, any time you reply to a thread, this will go to the person you are working with. Reply instead of starting a new thread when you would like to continue investigating an existing inquiry.

    Any time you start a new thread, this will create a new inquiry and a new case ticket, which will be answered by the first person available and may not be the person you are previously working with. Start a new thread instead of a reply when you have a new question that is unrelated to a previous inquiry. This will allow us to properly track each issue.

    We appreciate your cooperation in this regard.


    You can use GetTime() to get the timestamp at the specified current bar index.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X