Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ScottWalsh, Today, 04:29 PM
    0 responses
    2 views
    0 likes
    Last Post ScottWalsh  
    Started by rtwave, 04-12-2024, 09:30 AM
    2 responses
    21 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    69 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    7 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    49 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X