• 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 steveg, Today, 02:44 PM
    0 responses
    1 view
    0 likes
    Last Post steveg
    by steveg
     
    Started by asmmbillah, Today, 02:23 PM
    0 responses
    7 views
    0 likes
    Last Post asmmbillah  
    Started by BatBart, Today, 01:24 PM
    1 response
    11 views
    0 likes
    Last Post Jonsey529  
    Started by lightsun47, Today, 12:33 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Woomera, Today, 12:21 PM
    2 responses
    9 views
    0 likes
    Last Post Woomera
    by Woomera
     
    Working...
    X