Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Series Bug in data presentation in Basket (Backtesting//Optimization)

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

    Series Bug in data presentation in Basket (Backtesting//Optimization)

    Dear Support:

    I have found a bug in how Ninjatrader presents the data of backtesting and optimization with multiple instruments.

    In this video: http://screencast.com/t/t6t3fdU6NKqt

    You can see how I backtest a strategy in AUDUSD 2 times with the same parameters.

    And I Always get the same results: 9 trades, 2.29 profit factor that is the correct working of the strategy.

    Then I do a multiple instruments backtesting 3 times using the same parameters:

    1st Multiple backtesting I get for AUD 15 Performance and number of trades 13. But be aware! when I analize the data of the trades, they are the corrects ones, 9 trades as before.

    2nd Multiple Backtesting I get different results: 7 Performance with 7 trades, but I again if I go to Trades Tab, it seems it has done the same trades 9 trades.

    3rd Multiple Backtesting go back to the correct one, 9 trades, 2.29 profit factor....
    ------------------------------------------

    So this bug seems to be related on how the data is presented in the instruments tab of a multi-instrument backtesting, because the data is correct if you select the instrument and go to "Performance viewer".

    #2
    Thanks for the report - would you see this with our SampleMACrossOver strategy testing in a nonconnected state as well on your instruments used?

    Comment


      #3
      Dear Bertrand

      Im always disconnected now and with your strategy its works fine ^_^.

      Comment


        #4
        Thanks for letting me know. Would then investigate closer what your script could contribute. I remember you use of statics? You could not rely on a particular instrument instance call sequence, so could an issue perhaps.

        Comment


          #5
          Its not very efficient, because Im still learning but maybe it will help you to find some irregularity on NJ processing.

          It works well when I backtest, it does his job. But when I try to optimize its a total mess.

          When I do the multiple backtesting it happens what you have seen in the video.

          So there are some things going on that I can not understand ^^.

          Here is the code:

          Search, download and share files from 4shared: music, video, images, books, apk. Use advanced search filters to find favorite songs, video clips and mobile apps.

          Comment


            #6
            Thank you!

            Resolved now I can optimize! NinjaTrader is Solid it was my code :P

            I have bought C# 5.0 in a Nutshell

            and Ninja Script Programmer Launch Pad.

            Maybe I learn something there!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            65 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            41 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            23 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            26 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            52 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X