Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

market Replay

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

    market Replay

    When I do the Market Replay I get an error message that says

    Failed to execute DB job 'StrategyUpdateJob': A foreign key value cannot be inserted because a corresponding primary key value does not exist. [ Foreign key constraint name = FK_nt_strategy2execution_000000000000028B ]

    How do I go about using the market replay. Is there any way to delete the replay data and get the data again.

    #2
    Hello cbart_1,


    Thank you for your forum post.


    This error message indicates some database corruption.


    To troubleshoot the situation, I would recommend to reset your database:


    Please follow the instructions below to reset the NinjaTrader database.
    • Disconnect NinjaTrader from any open connections via File > Disconnect
    • From the NinjaTrader Control Center window select the menu Tools > Options
    • Select the "Data" tab
    • Press the "Reset DB" button
    • Press the "OK" button
    • Restart NinjaTrader and re-test the connection on Market Replay
    Ryan L.NinjaTrader Customer Service

    Comment


      #3
      Market Replay

      Ok I went to the cache folder and deleted all the folders there, I think those are the market replay. I resetted the DB and downloaded the replay data and it is working now.

      Comment


        #4
        Hello cbart_1,


        Thank you for the follow up and I am glad to hear that you were able to resolve the situation.


        For reference while moving forward, all market replay data is saved in the following folder on your file system:
        • C:\Users\<USERNAME>\Documents\NinjaTrader 7\db\data
        Ryan L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        48 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X