Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

change the bar spacing from indicator

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

    change the bar spacing from indicator

    is it possible to change the bar spacing from an indicator.
    i don't see anything directly from looking at the help guide.
    what i'd like to do is to have a list of preset timeframes like "week to date", "month to date", "year to date", etc and be able from an indicator with a button to quickly adjust the time axis by changing the bar spacing.

    #2
    Hello dtl-saw,

    Thanks for your post.

    These properties are intended to be set by the user, but you could try assigning ChartControl.Properties.BarsDistance from your script.

    Code:
    ChartControlProperties myProperties = ChartControl.Properties;
    myProperties.BarDistance = 1000;
    ChartControl.Properties - https://ninjatrader.com/support/help...properties.htm

    We look forward to assisting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X