Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer

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

    Strategy Analyzer

    Hi,
    Is there a way to back test an existing strategy ? I did not see that option in the menus, but I am new at this. I would like to run some of the gentic optimizers others were so kind to share.
    Thanks

    #2
    Widgetman, just open the Strategy Analyzer and right click on the market you wish to test on and the select either BackTest / Optimize / WalkForward as test procedure - http://www.ninjatrader-support.com/H...AStrategy.html

    In upcoming backtest properties window you can then select which strategy to run.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      No backtest/optimize/walkforward window

      When create the strategy analyzer window....it comes up normally. If I select a "futures" contract it displays it in the chart windows.

      If I follow the directions for optimization, I right click on the contract and then click optimize. When I do this, a little tiny tab on the right says optimize, but there is no options for setting anything, it is just a tab.

      Same for the other two options.


      Any ideas.

      P.S. Can you use hybrid renko bars or third party bars in doing an optimize session....if I ever have an opportunity to use it!

      Comment


        #4
        Hello idissinger,

        Thank you for your post.

        When you right click on the instrument > select Backtest > what strategy is listed in the Strategy drop down menu? If you select the SampleMACrossOver do you see the settings?

        And you can use custom bar types in Backtests as well.

        I look forward to assisting you further.
        Attached Files

        Comment


          #5
          Took me a while to figure it out.

          I have some code on the machine that was causing the issue (not my code), but I fixed it and now it displays the optimizer panel.

          Thanks.

          P.S. It won't run the optimizer because of the message that there is nothing to optimize, but I'll read a few posts to see if I can find the reason for this.

          Thanks,

          Leroy

          Comment


            #6
            Hello Leroy,

            Thank you for your response.

            Do you have historical data for the instrument you are trying to optimize your strategy on?

            You can check this by going to the NinjaTrader Control Center > Tools > Historical Data Manager > Edit > left click on the '+' next to the instrument you wish to test > left click on the '+' next to Last > and then the '+' next to the interval type you are using.

            I look forward to assisting you further.

            Comment


              #7
              Yes, it is finally working.


              Thanks.

              Comment


                #8
                Multiple CPUs

                It is too bad that you do not utilize all of the processors when doing the optimization. It would be done on my machine 8 times faster.

                Maybe you are using multiple CPUs.....it seems that the output is garbled....so it may be using multiple processors.

                Leroy
                Last edited by ldissinger; 08-17-2012, 03:29 PM.

                Comment


                  #9
                  Only one result

                  Patrick,

                  Is there something special a strategy has to do when the last date has passed....so that everything is reset to a good value for the next pass?

                  Do internal variables need to be initialized in the "Initialize" method when doing optimization?

                  I only get one result after running for 11:00 and it had a lot to do. I told it to save 100 results just for fun.


                  Leroy

                  Comment


                    #10
                    Hello Leroy,

                    Thank you for your response.

                    NinjaTrader 7 has optimized multi core/multi-processor support. This would allow you to make full usage of multi-core/ multi-processor hardware on backtesting multiple instruments or running multiple iterations of a strategy optimization at the same time.

                    However due to the nature of the Window OS, NinjaTrader 7 would not be able to fully use all available multi-cores/multi-processors at any given time.

                    There should be no need to do anything special for your strategy when running the optimizer in NinjaTrader.

                    So I may investigate this matter further please test the optimization on the SampleMaCrossOver with the same settings as you strategy, if you get the same results please respond with a screenshot of your Optimization settings.

                    I look forward to assisting you further.

                    Comment


                      #11
                      Riddle me this....why do I only get one result.

                      When I run it from a chart....it trades clear up to and including the last bar. In the strategy optimizer, it stops early....very near the beginning of the data and I only get one result. Therefore, I'm guessing the that the rest of the runs are doing nothing.

                      When my current run is done 23 minutes....but I'm pretty sure only one result there too.

                      I'm using Hybrid Renko bars....special type of bar.


                      I will try it with the SimpleMACrossOver and we shall see, but that strategy is really simple which is good, but if you are maintaining variables and not just switching directions....something different may happen.



                      I'm maintaining IOrder objects and utilize Strategy.Positions to do some things, so it is vastly different......I'll let you know.
                      Last edited by ldissinger; 08-17-2012, 03:49 PM.

                      Comment


                        #12
                        Just one result

                        Yes, multiple results with anaylzer.

                        But the strategy I'm running does not complete in the strategy analyzer....to the end as it does in chart mode....so it is difficult to figure out.

                        Leroy
                        Attached Files
                        Last edited by ldissinger; 08-17-2012, 04:06 PM.

                        Comment


                          #13
                          Hello Leroy,

                          Thank you for your response.

                          If you click on the Optimizer tab after running your Optimization do you see more than one result?

                          The screenshot you have provided shows the Instrument tab selected, if you have only ran the Optimization on one instrument than only one instrument will be shown on the Instrument tab.

                          I look forward to assisting you further.

                          Comment


                            #14
                            It is all good now....

                            Thanks.

                            Leroy

                            Comment


                              #15
                              I have a MA strategy on better renko.
                              Is it doable to optimize on parameters of both MA and better renko bar?

                              Thanks.

                              lcy1031

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by techgetgame, Yesterday, 11:42 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post techgetgame  
                              Started by sephichapdson, Yesterday, 11:36 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post sephichapdson  
                              Started by bortz, 11-06-2023, 08:04 AM
                              47 responses
                              1,613 views
                              0 likes
                              Last Post aligator  
                              Started by jaybedreamin, Yesterday, 05:56 PM
                              0 responses
                              10 views
                              0 likes
                              Last Post jaybedreamin  
                              Started by DJ888, 04-16-2024, 06:09 PM
                              6 responses
                              20 views
                              0 likes
                              Last Post DJ888
                              by DJ888
                               
                              Working...
                              X