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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    55 views
    0 likes
    Last Post CarlTrading  
    Working...
    X