Announcement

Collapse
No announcement yet.

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.

    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;

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        590 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        342 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        555 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X