Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Match Data Series Width programmatically

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

    Match Data Series Width programmatically

    Dear Support,

    How can I set question in subject programmatically, please? There is an option to set it in GUI, I basically want it to persist between NT8 sessions (after I closed and opened, I would like the setting to be matching data series, when currently it does not.
    1st option came to mind is to set it in OnStateChange --> State.SetDefaults so that when class is loaded the value will be set programmatically, but cannot find a way to do it (hence the question).
    2nd option could be something I don't yet know about the platform (relatively new), maybe there is another way to persist these values once they set in GUI? the "match data series width" in particular ...

    it seems to be relatively new option https://ninjatrader.com/support/help.../?8_0_16_1.htm , feature 12303

    Thank you in advance,
    Last edited by stasha; 11-20-2018, 10:59 AM.

    #2
    Hello stasha,

    Thanks for your post.

    When I test modifying Plots[0].AutoWidth, I am able to set "Match to Data Series" and I do not have an issue setting this within State.SetDefaults.

    Code:
    AddPlot(new Stroke(Brushes.White), PlotStyle.Bar, "MyPlot");
    Plots[0].AutoWidth = true;
    Please let me know if this does not help resolve your inquiry.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    639 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X