Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimizing Time periods

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

    Optimizing Time periods

    Hi Again

    Can you explain if the optimizing feature has the ability
    to optimize time periods?

    IE: would like to know what timeframe a particular strategy
    works best with.

    Thanks

    Lynn

    #2
    Unfortunately this is not supported.

    Comment


      #3
      Optimizing time periods

      Thanks for prompt response.

      Is this something that could be considered in future updates?

      It would be a huge time saver.

      Thanks

      Lynn

      Comment


        #4
        Thanks for your suggestion. We'll add it to the list of future considerations.

        Comment


          #5
          Originally posted by latkinso View Post
          Hi Again

          Can you explain if the optimizing feature has the ability
          to optimize time periods?

          IE: would like to know what timeframe a particular strategy
          works best with.

          Thanks

          Lynn

          You know you can manually do this yourself already. Use a 'if
          ToTime(Time[
          0]) >= ToTime(variable, 00, 00) {}' in your code.

          and just make that an input variable to optimize against.
          Last edited by scriabinop23; 01-29-2008, 08:46 PM.

          Comment


            #6
            Optimizing Time Periods

            Thanks for your input.

            I am at very basic level of programming skills, and not sure
            I understand your suggestions. I was hoping that the chart
            timeframes could be added to the optimizer such that could
            test strategy could be tested over a large number of timeframes for an optimum level. Is this what could be accomplished with your suggestion?

            Thanks for your input

            Lynn Atkinson

            Comment


              #7
              Change Optimize/Backtest values in Strategy

              As a generalization of this thread's 'optimizing time period' enhancement request, it would be great to be able to set any Backtest or Optimize value like:

              Data series -> Type
              Data series -> Value
              Time frame -> From
              Time frame -> To
              General -> Min. bars required

              in the Strategy code (maybe in the Initialize() method). That way the Optimizer could iterate over Parameter values and the Strategy code could change the Optimize/Backtest values dynamically for each parameter iteration.

              Maybe this can already be done? Since historical futures data I use is divided into 3 month contracts, right now I run each chart time frame and each data series period (i.e. the time frame From and To) manually and separately. It sure would be nice to setup a single optimization iteration over several years of futures contracts for several chart time frames. The easiest and most flexible way I can see to do that would be to control the Optimize/Backtest values from the Strategy code.

              Regards,

              David
              dbw451

              Comment


                #8
                Thank you for your suggestion David. I will forward it to development.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by xiinteractive, 04-09-2024, 08:08 AM
                3 responses
                11 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by Johnny Santiago, 10-11-2019, 09:21 AM
                95 responses
                6,193 views
                0 likes
                Last Post xiinteractive  
                Started by Irukandji, Today, 09:34 AM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by RubenCazorla, Today, 09:07 AM
                1 response
                6 views
                0 likes
                Last Post RubenCazorla  
                Started by TraderBCL, Today, 04:38 AM
                3 responses
                26 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X