Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DB Error on log

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

    DB Error on log

    Whats DB Error on log and the fix?
    (Attached)

    Everything else runs fine otherwise.

    #2
    Hello johnnybegoode,

    Thanks for your post.

    My first thoughts on that error would be that there is an issue with the database where new entries are seen as duplicates. I would suggest to rename your database file and test your strategy again to see if the issue persists. (Close NinjaTrader, Navigate to Documents/NinjaTrader 8/db/ and rename NinjaTrader.sdf to NinjaTraderOLD.sdf.)

    If you are continuing to see issues with one strategy but not with others, I may suggest to compare the strategy against a working version, and to comment out sections of code to identify what the cause is. Since the database keeps track of Orders and Executions, you may wish to look at Order handling in your script and if you are using OnOrderUpdate/OnExecutionUpdate, to model after our SampleOnOrderUpdate strategy.

    SampleOnOrderUpdate - https://ninjatrader.com/support/help...and_onexec.htm

    Please let me know if you are continuing to see issues after taking these steps.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X