Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    23 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    120 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X