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 preqc, 04-10-2022, 01:26 PM
    2 responses
    204 views
    0 likes
    Last Post mixedbyclaudio  
    Started by defa0009, 12-13-2024, 09:19 AM
    23 responses
    252 views
    1 like
    Last Post marcus2300  
    Started by srtrader, 02-12-2025, 09:01 PM
    3 responses
    27 views
    0 likes
    Last Post rockmanx00  
    Started by bertochi, 02-14-2025, 05:25 PM
    2 responses
    31 views
    0 likes
    Last Post bertochi  
    Started by sclay115, 02-10-2025, 03:58 PM
    6 responses
    32 views
    0 likes
    Last Post sclay115  
    Working...
    X