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 rhyminkevin, Today, 04:58 PM
    4 responses
    52 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X