Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Obtain open position after restarting scripts

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

    Obtain open position after restarting scripts

    If scripts restart for any reasons, such as lost internet, power cycles etc, how to get previous open positions?

    Could I get these infor directly from the stock account such as TDAmeritrade instead of storing the infor locally?

    Thanks.

    #2
    In this case you would want to change your submit settings for the strategy so that it can recognize previously placed orders.

    Most likely you'd want the Immediately submit sync = false option.

    For accessing the menu with these settings go to tools -> options -> Strategies tab -> NinjaScript: http://www.ninjatrader.com/support/h...tegies_tab.htm

    For a video detailing the different options: http://www.youtube.com/watch?v=US9cKUwLMOA

    For written documentation: http://www.ninjatrader.com/support/h..._positions.htm

    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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