Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartControl.BarMarginRight

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

    ChartControl.BarMarginRight

    Hi
    Right side margin is set in my Indicator,How can I make the change in the margin and also how can I remove this margin ?

    The indicator codes are as below

    HTML Code:
    if(ChartControl.BarMarginRight < (ChartControl.BarWidth + (int)spacesize.Width))
    ChartControl.BarMarginRight = ChartControl.BarWidth + (int)spacesize.Width;

    #2
    Hello,

    Thank you for the question.

    I am not sure I fully understand what you are trying to do, are you asking how to remove the margin so the indicator no longer sets this or are you asking how to set the margin from an indicator?

    If you are setting it and then asking how to change it after setting it from the indicator, the indicator would take priority so it would override what settings you have in the chart. There is no way around this and is also unsupported.

    I look forward to being of further assistance.

    Comment


      #3
      Thganks Jesse for the reply
      check the pic below I am talking about this margin ,how can I remove or reduce it

      Comment


        #4
        If you don't want it, just simply remove these lines from your code

        If you want some fixed margin, say 50px, please set it:
        Code:
        ChartControl.BarMarginRight = 50;
        You can also control the margin in the Chart Properties window (Ctrl + T), under the Window tab: Right side margin.

        Thanks.
        Pi
        Last edited by ninZa; 12-18-2014, 03:08 AM.
        ninZa
        NinjaTrader Ecosystem Vendor - ninZa.co

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X