• 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 PLeary, Today, 06:25 AM
    0 responses
    3 views
    0 likes
    Last Post PLeary
    by PLeary
     
    Started by sergey_z, Today, 06:17 AM
    0 responses
    1 view
    0 likes
    Last Post sergey_z  
    Started by nikkk, Today, 06:14 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by chazyang, Today, 02:01 AM
    2 responses
    10 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by tonynt, Today, 01:20 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X