Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Preventing ninjatrader.sdf oversize

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

    Preventing ninjatrader.sdf oversize

    Hello all!

    I have strategy that actively changes few limit orders on every bar.
    Main strategy logics are in onBarUpdate and onExecution.
    Running it on many instruments I've got fast growth of ninjatrader.sdf file
    and then it become about 256 Mb errors are occurring.

    How to prevent writing everything by strategy do in this file?
    Or any other way

    Thank you

    Can [XmlIgnore] help? If yes, what section of code it should be placed?
    Last edited by makhmout; 09-06-2021, 06:40 AM.

    #2
    Hello makhmout,

    Thanks for your post.

    XmlIgnore will not prevent executions from being written to the NinjaTrader.sdf file. It would be used to prevent serialization of public properties so they are not written to XML template and workspace files.

    We would not generally expect errors to come about after running a basic strategy that simply places orders and writes executions to the database file to generate database errors. Have you confirmed that using this strategy alone, from a clean database file introduces database errors? Please confirm by first closing NinjaTrader, renaming the database file to NinjaTraderOLD.sdf and then restarting NinjaTrader and testing just that strategy.

    If testing this strategy without using other strategies shows issue [from a clean database file,] we would very much like to see a copy of this strategy and some steps we can take to reproduce the database errors testing the strategy. We would be asking for the source code of the strategy and not a DLL export. You may attach the strategy source code here, or email it to us at scriptingsupport [at] ninjatrader [dot] com with the text "Attn Jim 3251555."

    I could then check if there is anything being done that should not be done and if this is something we could report to the development team.

    Exporting as source code - https://ninjatrader.com/support/help...tAsSourceFiles

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bmartz, 03-12-2024, 06:12 AM
    4 responses
    31 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by Aviram Y, Today, 05:29 AM
    4 responses
    12 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X