Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 GwFutures1988, Today, 02:48 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    6 responses
    27 views
    0 likes
    Last Post ScottWalsh  
    Started by frankthearm, Today, 09:08 AM
    10 responses
    35 views
    0 likes
    Last Post frankthearm  
    Started by mmenigma, Today, 02:22 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by NRITV, Today, 01:15 PM
    2 responses
    9 views
    0 likes
    Last Post NRITV
    by NRITV
     
    Working...
    X