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 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
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X