Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X