Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Save on Ninja close, Resume

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

    Save on Ninja close, Resume

    I want to write a strategy that saves a few parameters somehow, and then when the strategy is resumed, those parameters are reloaded and the strategy is able to continue.

    For example, in it's simplest form, lets say I want to start an integer at 0 and increase it everytime a trade is placed. And then I want to shut down for the weekend.. When I come back on Monday, I want to show that integer as non-0 because trades were placed. Is the best way to do this still a text file, or has NT7 given us some other facility?

    Thanks,

    #2
    Hello Treeman,

    Welcome to the NinjaTrader forums!

    There is no persistance between strategy sessions so a file is one way to go about this. You may be able to do this through the use of global variables, but this is unfortunately beyond our scope of support. Check MSDN C# reference for this.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    71 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    43 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    25 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    28 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    56 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X