Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy testing NT7 vs NT8

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

    Strategy testing NT7 vs NT8

    Hi, was wondering what are the expectations when a strategy is tested with the NT7 “Market Replay”; then the same strategy tested with the NT8 Market Replay?
    Are the results supposed to be pretty consistent?
    Will the replay speed somehow affect the results?

    I have that the number of trades executed for the same strategy and same instrument in NT7 and NT8 are pretty consistent month after month, but the gains and loses vary significantly.
    The NT7 and NT8 data are downloaded separately from a third party vendor and not from NT.

    Thanks...

    #2
    Hello 2Look4me,

    Thank you for your post.

    Similar results between NinjaTrader 7 and NinjaTrader 8 should be expected, but exact results require the exact same data and the same order fill processing as well as the exact same strategy logic.

    As NinjaTrader 7 and NinjaTrader 8 use different historical data servers and tick data on NinjaTrader 8's historical data servers has sub second granularity, it would not be possible to get the data to line up perfectly, so some differences in fills would be expected. However, you're using a third party vendor, so I can't say for sure how their data may differ between NinjaTrader 7 and 8.

    You can import historical data through the Migration Process that you are prompted with when you install a clean version of NinjaTrader 8. (Installing the platform without the Documents\NinjaTrader 8\ folder.) You can get this prompt to come up by removing the <MigratedNT7> string in your Config.xml file.

    You can follow the steps below to do this:
    1. Close NinjaTrader
    2. Edit the Documents\NinjaTrader 8\Config.xml
    3. Remove the string "<MigratedNT7>not migrated</MigratedNT7>" This string may be different depending on your initial Migration setting
    4. Save Config.xml
    5. Restart NinjaTrader 8
    There is a lot more information on this in the Migration Guide that you can find here: https://ninjatrader.com/NinjaTrader-8-MigrationGuide

    My suspicion here is the discrepancy is primarily due to sub-second granularity in NinjaTrader 8 data vs not having that granularity in 7. If you migrate the data from 7 to 8, I'd expect them to match more closely, though not exactly due to some changes in order fill processing in 8.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi Kate and thanks for the thorough explanation. But it seems to be quite a bit of slippage with most of the entries with NT8 in comparison with NT7.

      I was having these issues with my strategy, therefore I proceeded to test with NT7 & NT8 strategy sample: "SampleMACrossOver". I'm attaching a couple of charts hoping that they will explain the issues better. Any settings in particular that might be causing this?


      Click image for larger version

Name:	NQ 03-15 (3 Min)  2_10_2015.jpg
Views:	233
Size:	101.6 KB
ID:	1096047Click image for larger version

Name:	NQ 03-15 (3 Minute) 2015_02_10 (9_19_46 PM).png
Views:	291
Size:	107.4 KB
ID:	1096048

      Comment


        #4
        Hello 2Look4me,

        Thank you for your reply.

        Did you try my suggestion of migrating your data from NInjaTrader 7 to NinjaTrader 8 and testing? This looks to me as an expected difference given granularity differences between NinjaTrader 7 and 8 data.

        During a backtest assumptions are made on the fill price of an order is based on the OHLC of a bar and the price of the order itself. You can also have differences depending on which fill algorithm you choose.

        Here's how the historical fill algorithm works in NinjaTrader 8:



        In NinjaTrader 7 it's a little different, you can find information about historical fill processing on this page:



        I'd expect to occasionally see fills that differ between NinjaTrader 7 and 8 as the fill processing is slightly different.

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kujista, Today, 06:23 AM
        4 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by traderqz, Yesterday, 09:06 AM
        2 responses
        15 views
        0 likes
        Last Post traderqz  
        Started by traderqz, Today, 12:06 AM
        3 responses
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X