Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

right side margin

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

    right side margin

    hi guys can you guys help me to make easy script

    its only set always right side margin 180, i have another indicator always after reload resting it to 30

    so i need after scripts reload to set 180


    i am new in NT8 f i am asking the wrong place please guide me where to ask


    cheers

    #2
    Hello mohdqallaf,

    Welcome to the NinjaTrader support forum.

    You could use the following syntax to move the margin:

    Code:
    protected override void OnBarUpdate()
    {
    if(ChartControl != null)
    {
         ChartControl.Properties.BarMarginRight = 180;    
    }
    }
    https://ninjatrader.com/support/help...properties.htm

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X