Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting

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

    Backtesting

    Hello,

    I have problem with backtesting. I have strategy and I've seen data to back test in the file (since 01.2014 to 2015) but robot doesn't use all data. Only one day 2014-01-02 (qty of bars I switched on to the infinity). How to do backtest?
    Last edited by kot_filemon; 05-11-2015, 03:31 AM.

    #2
    Hello kot_filemon,

    Thanks for your post.

    I recommend that you try backtesting with a known strategy such as the SampleMACrossover strategy that came with your Ninjatrader. If you can run the strategy and see the results over the period of time 01.2014 to 2015 then that would say that your data is okay but that there may be an issue with your strategy.

    If you are unable to run the SampleMACrossover strategy then that would suggest an issue with either the data or the parameters used to set up the strategy.

    Please review the helpguide here: http://www.ninjatrader.com/support/h...a_strategy.htm

    Comment


      #3
      Thank you Paul.

      These data are from NT folder. Type: *.Last.ntd. Sample works ok. If problem is in the code, why transaction was made during one day?
      I read helpguide in the backtest case.

      Comment


        #4
        Hello kot_filemon,

        Thanks for your reply.

        When you say the sample runs okay I assume that to mean that it executed trades over the period specified in the TimeFrame section of the backtest parameters.

        When you run your strategy, do you see any error messages listed in the "log" tab of the control center?

        Can you provide a screenshot of the backtest chart and summary results that shows your strategy execution(s)?

        Comment


          #5
          Thank you.

          Next I don't understand, why the code makes more trades than 1 per day. I have such line of code:
          if (Performance.AllTrades.Count>1)return;

          Is AllTrades() means.....all trades, but during whole Time Frame, not one day?

          There are not errors in the "log" tab.
          Attached Files

          Comment


            #6
            Hello kot_filemon,

            Thanks for your reply.

            At this point I think you have isolated the issue to be with your strategy. The next step would be to debug your strategy to better understand why or why not it performs as as it does.

            Please review this link in the reference section for tips on debugging the strategy: http://www.ninjatrader.com/support/f...ead.php?t=3418

            Comment


              #7
              Thank you Paul,

              I think, I probably found the error (maybe more than one ). Have a nice day.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              77 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              45 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              27 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              32 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              63 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X