Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Actual BarMargin

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

    Actual BarMargin

    How do I get the actual BarMargin in Pixels.
    Tried BarMarginLeft, but zooming in and out, it always stays the same.

    Regards and thanks

    #2
    Hello keepsimple,

    Thank you for your inquiry.

    The documentation for the BarMarginLeft property will be updated.

    In order to do this, you can use the GetXByBarIndex() method call: http://ninjatrader.com/support/helpG...bybarindex.htm

    You will want to do this for two adjacent bars and subtract their x-coordinates to find the distance between the two.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    29 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X