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

simple questions

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

    simple questions

    Hi,
    I use this in initialize to simplify running tests

    CalculateOnBarClose = true;
    ExitOnClose = true;
    Enabled = true;
    Slippage = 2;
    BarsRequired = 5;
    IncludeCommission = true;

    Is there any way I could add also identification of session template for that as a default one?
    Also, I want to set default quantity to 100, is there any way I can do that in initialize?
    Also, data series value? I mean default timeframe to test and
    default values for optimization of my variables, like start, stop, step values....

    Thanks
    N.

    #2
    nicknamed, you could check with session template is used, but not set the one to use -



    For qty, you can set DefaultQuantity to your desired value -



    You can check with chart type and period value is used and then set variables as needed (in OnBarUpdate() ) -

    Last edited by NinjaTrader_Bertrand; 10-13-2010, 09:02 AM.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      you could check with session template is used, but set the one to use -

      I guess correctly it is "but not set the one to use -"
      if it is possible to set default one, please give me an example if I use US Equities RTH

      Also,
      Is it possible to set default values for
      Keep best # results
      Optimize on...
      Set order quantity

      examples would be great, thank you in advance, I am not a programmer, just have to run many many tests so I am thinking about easing the clicking a bit.

      Thank you
      N.
      Last edited by nicknamed; 10-13-2010, 08:30 AM.

      Comment


        #4
        Sorry, just edited my post, you can't set the template to use, you can only check with one is applied.

        For your follow up, you could only set the order quantity from those example, just define a default quantity in Initialize().

        DefaultQuantity = 10;
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        4 responses
        24 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Brevo, Today, 01:45 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by rjbtrade1, 11-30-2023, 04:38 PM
        2 responses
        74 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Started by suroot, 04-10-2017, 02:18 AM
        5 responses
        3,022 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Stanfillirenfro, Today, 07:23 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X