• 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

Determine index of the first bar painted

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

  • NinjaTrader_PaulH
    replied
    Hello afshinmoshrefi,

    Thanks for your post.

    As member gubbar924 advised, you can use ChartBars.FromIndex. The help guide link advised that FromIndex is an int representing the first bar index painted on the chart.

    Here is the link to GetXByBarIndex(): https://ninjatrader.com/support/help...bybarindex.htm

    Leave a comment:


  • gubbar924
    replied
    have you tried ChartBars.FromIndex ?

    https://ninjatrader.com/support/help...Bars.FromIndex

    Leave a comment:


  • afshinmoshrefi
    started a topic Determine index of the first bar painted

    Determine index of the first bar painted

    I want to find the index of the first bar that is displayed on the chart in order to find X value of the bar.
    I found the API for FirstTimePainted. However I want the index but can't find it in the docs.
    What is the API to get the index of the first displayed bar?

Latest Posts

Collapse

Topics Statistics Last Post
Started by aligator, Today, 07:36 PM
0 responses
2 views
0 likes
Last Post aligator  
Started by Mykro, Today, 07:18 PM
0 responses
1 view
0 likes
Last Post Mykro
by Mykro
 
Started by White Fork, Today, 04:56 PM
0 responses
8 views
0 likes
Last Post White Fork  
Started by mkoning, Today, 04:20 PM
0 responses
4 views
0 likes
Last Post mkoning
by mkoning
 
Started by itrader46, Today, 02:59 PM
3 responses
8 views
0 likes
Last Post NinjaTrader_Jesse  
Working...
X