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

Setting default strategy settings (Data series type = minute, value = 15)

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

    Setting default strategy settings (Data series type = minute, value = 15)

    Hello,

    I want to compile something, and when I click "Add Strategy" I'd like all of the initial values set by the source code. Something like this:

    MovingAvPeriods = 14

    //set the default to 15 minute bars
    DataSeries.Type = Minutes
    DataSeries.Value = 15

    //set the instrument default to $EURUSD
    DataSeries.Instrument = "$EURUSD"

    This is all pseudo code, how do I actually tell the system to setup my strategy like that?

    Thanks,

    Evan

    #2
    Hi Evan, once your paramters are all set from the UI, you could right click and 'set to default' - this way they would be saved to a default template that would be used whenever you readd your strategy.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Can you elaborate on how to have the a default data series for new strategies?

      Comment


        #4
        Hello,

        Please see our Help Guide article on Understanding strategy default settings for more information

        MatthewNinjaTrader Product Management

        Comment


          #5
          Holy #$%!, never even though about right clicking. Thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mupulen, 04-16-2024, 11:26 AM
          1 response
          54 views
          0 likes
          Last Post techbech  
          Started by Quanto, Today, 02:17 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cmtjoancolmenero, 04-25-2024, 03:58 PM
          24 responses
          125 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Skifree, Today, 11:21 AM
          3 responses
          11 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by manueldecastro, Today, 01:16 PM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X