• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dr0832, 01-04-2019, 10:34 AM
    7 responses
    140 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by cbentrikin, Today, 07:46 PM
    0 responses
    4 views
    0 likes
    Last Post cbentrikin  
    Started by RedDuke, Today, 06:14 PM
    0 responses
    4 views
    0 likes
    Last Post RedDuke
    by RedDuke
     
    Started by DariusDeck, Today, 04:22 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by pstrusi, Today, 05:05 PM
    1 response
    3 views
    0 likes
    Last Post pstrusi
    by pstrusi
     
    Working...
    X