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 RubenCazorla, Today, 09:07 AM
    0 responses
    1 view
    0 likes
    Last Post RubenCazorla  
    Started by BarzTrading, Today, 07:25 AM
    2 responses
    28 views
    1 like
    Last Post BarzTrading  
    Started by devatechnologies, 04-14-2024, 02:58 PM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by tkaboris, Today, 08:01 AM
    0 responses
    6 views
    0 likes
    Last Post tkaboris  
    Started by EB Worx, 04-04-2023, 02:34 AM
    7 responses
    165 views
    0 likes
    Last Post VFI26
    by VFI26
     
    Working...
    X