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

Defaults for Primary Instrument Series

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

    Defaults for Primary Instrument Series

    Hello.
    In my ninjascript, where do I set default values for my primary series? In particular, when I pull up a strategy to run on the Strategies tab, the Parameters are all correct, but the Data Series defaults to Instrument: ES 03-19, Type: Minute, Value: 5, whereas I want a different Instrument and the Minute Value to be 30. It's easy enough to change manually via the UI when I run the strategies, but I prefer to have it just automatically populate with the correct value to minimize possible mistakes. I'm aware I can also specify this via AddDataSeries, but was wondering if there's way to do it just working with the Primary Instrument.
    Thanks!

    #2
    Hello stewarco,

    Thank you for the post.

    At this time it is not possible to have a default instrument or dataseries settings defined in code.

    If you are working in the control center you can save templates and a default template for the strategy, when you go to apply it there is a small button in the lower right of the strategies window that says Template. That will allow for instrument and other settings to be saved so you can apply them when applying a strategy.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mattbsea, Today, 05:44 PM
    0 responses
    4 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    31 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    20 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Working...
    X