Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting the X position of the current bar

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

    Getting the X position of the current bar

    Hello,

    Is there any way to get the X position of the current bar? I was unable to find a method to retrieve any of that info.

    I am building a custom price line that I would like to remain directly to the right of the bar. Thanks in advance!!!

    #2
    Hello cpbeamer,

    Thanks for your post.

    In OnRender() you can use: ChartControl.GetXByBarIndex(ChartBars, CurrentBars[0]);

    Reference: https://ninjatrader.com/support/help...bybarindex.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    88 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    47 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    105 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X