Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is SlotIndex == BarIndex?

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

    Is SlotIndex == BarIndex?

    Hi,

    Just a quick question. I have a rectangle (System.Windows.Rect) of which I know the left and right X positions. To see which bars on my chart this represent, I do a chartControl.GetSlotIndexByX(myRect.X) for example. A couple of questions on this:
    • Why does the above method take an int as a parameter? Surely a mouse click for example is very rarely on exactly an int value on the chart
    • The method returns a double. Is the int part of this value the same as the BarIndex?


    I am trying to determine what range of bars in my chart the rectangle spans, hence my question.

    Any help would be greatly appreciated.

    Regards,
    John Steinberg
    Last edited by JohnSteinberg; 10-12-2016, 10:45 PM. Reason: Fixed typo

    #2
    Hello,

    Thank you for the post.

    I have reviewed the syntax and currently there is no exposed method specifically for what you are intending to use this for. Rather than getting a Bar index, this gets the bars Slot or space allocated for it. I had provided an example to development and this item was added as issue NTEIGHT-10552.

    There will be a specific method to correctly return an index of a bar from a given x value.This should be noted in the change log in the upcoming release.

    I look forward to being of further assistance.

    Comment


      #3
      Thank you

      Hi Jesse,

      Thank you very much for the reply an support. I will be looking at upcoming release notes for the method.

      Regards,
      John
      Last edited by JohnSteinberg; 10-16-2016, 04:24 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      577 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X