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 Haiasi, Today, 06:53 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottWalsh, Today, 06:52 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottW, Today, 06:09 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ftsc2022, 10-25-2022, 12:03 PM
    5 responses
    256 views
    0 likes
    Last Post KeyonMatthews  
    Started by Board game geek, 10-29-2023, 12:00 PM
    14 responses
    244 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X