• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DTSSTS, Today, 01:26 PM
    0 responses
    3 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by RFrosty, Today, 01:20 PM
    0 responses
    4 views
    0 likes
    Last Post RFrosty
    by RFrosty
     
    Started by Newtrader101, Today, 12:59 PM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by Bmatarese, Today, 11:08 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by aligator, Today, 11:16 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_Heath  
    Working...
    X