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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X