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 DavidHP, Today, 07:56 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by kujista, Today, 06:23 AM
    3 responses
    7 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by Mindset, Yesterday, 02:04 AM
    2 responses
    18 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Started by f.saeidi, Today, 08:03 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by samish18, 04-17-2024, 08:57 AM
    15 responses
    53 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X