• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtester Bug?

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

    Backtester Bug?

    Hi,
    I have a trading system that was originaly designed in Amibroker and it was giving an 80% success. At ninja backtester it gives 100%.
    It enters and exits the trades intrabar. Is that possible to conflict the ninja backtester?
    I am sending you a photo.
    Attached Files
    Last edited by mailro; 04-01-2010, 05:40 PM.

    #2
    Hello mailro,

    Thank you for your post.

    You can get different results when comparing backtesting systems. This could be due to different data, fill algorithms, or framework.


    How have you structered the conversion from Amibroker to NinjaScript?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      What do you mean how I structured it? I just wrote it in nijascript.
      If I got it right there is no bug in ninja backtester the results are trusty.
      The data actually differ because amibroker gets data from strategy runner since ninja doesn't have DDE

      Comment


        #4
        My first reply was meant to indicate some general reasons for seeing discrepencies across different systems. We need to know how your code is structured to help identify a specific reason why you're seeing that 100% win rate. How are your exits setup? Do you have conditions and Exit statements or are you using only SetProfitTarget() for your exits?
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          The code goes like this:
          Once the price cross (something) enter a position short or long.
          Once you enter a position set a profit target and a stop loss target

          The code has been created using the strategy wizard.
          That's it.
          **this (something) doesn't have any optimization values and didn't went through any optimization to get created.

          Anyway I will let it ride for a couple of days untill some losses appear and I will let you know so you can locate the bug to the backtester.

          Comment


            #6
            Hello Mailro,

            We never claim that backtesting results will match performance in a live trading environment.

            Please see this article on discrepencies between real time and a backtest.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Of course I know and I understand this.
              If I see anythig strange between the backtester trades and the actuall trades I will let you know.

              Thanks again for your help

              Comment


                #8
                Dear Ryan there several bugs with the backtester that why I was getting the 100% results.
                I used as a fill algorithm the default.
                The bugs are:
                1) The backtester considers some trades that don't occur in Real life
                2) Some Real life trades occur at different prices than the backtester considers
                3) Some Real life losing trades are been reported as winning ones at the backtester
                4) Some Real life losing trades are not been reported at all

                If you are planning to resolve these bugs on a future version let me know if you want me to send you the trade lists or the charts of backtester and sim accounts so you locate the bugs more easily.

                Comment


                  #9
                  Hello Mailro,

                  We expect there to be differences between real life trading and backtesting results. Some of the reasons for this are covered in the link in my previous response. Additionally you could have different trade groupings depending on when you start the test.

                  Can you provide a scenario so we can attempt to reproduce your findings?
                  Ryan M.NinjaTrader Customer Service

                  Comment


                    #10
                    ok,
                    I have send the scenario at [email protected]

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by MercuryRed, Yesterday, 03:24 PM
                    1 response
                    16 views
                    0 likes
                    Last Post NinjaTrader_PaulH  
                    Started by Anonytrade, Today, 05:18 AM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_Marco  
                    Started by dave01star, Today, 02:20 AM
                    2 responses
                    6 views
                    0 likes
                    Last Post dave01star  
                    Started by kahei626, Yesterday, 09:30 PM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_ChrisSch  
                    Started by bboyle1234, Today, 01:06 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post bboyle1234  
                    Working...
                    X