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 StockTrader88, 03-06-2021, 08:58 AM
    45 responses
    3,992 views
    3 likes
    Last Post johntraderuser2  
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    7 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by realblubb, Today, 09:28 AM
    0 responses
    8 views
    0 likes
    Last Post realblubb  
    Started by AaronKoRn, Yesterday, 09:49 PM
    1 response
    19 views
    0 likes
    Last Post Rikazkhan007  
    Working...
    X