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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X