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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X