• 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

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Newtrader101, Today, 06:31 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Tyler7498, Today, 07:34 PM
    0 responses
    4 views
    0 likes
    Last Post Tyler7498  
    Started by Woomera, Today, 07:24 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Newtrader101, Today, 12:31 PM
    2 responses
    13 views
    0 likes
    Last Post Newtrader101  
    Started by kweiss, Today, 06:42 PM
    0 responses
    2 views
    0 likes
    Last Post kweiss
    by kweiss
     
    Working...
    X