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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    553 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    100 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    543 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    546 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X