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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        163 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        313 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X