• 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 ralett, Today, 06:20 PM
0 responses
4 views
0 likes
Last Post ralett
by ralett
 
Started by grizzlytrader, Today, 06:24 AM
1 response
20 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by andrewtrades, Today, 01:43 PM
1 response
6 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by FuturesRon, Today, 03:09 AM
1 response
18 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Ivantr, Today, 05:24 PM
0 responses
7 views
0 likes
Last Post Ivantr
by Ivantr
 
Working...
X