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 ScottWalsh, Today, 04:29 PM
    0 responses
    4 views
    0 likes
    Last Post ScottWalsh  
    Started by rtwave, 04-12-2024, 09:30 AM
    2 responses
    21 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    69 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    7 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    49 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X