Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Position closed on reconnect

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

    Position closed on reconnect

    Hi everybody,

    I am currently trying to test my strategies using a demo account (NT8 + Interactive Brokers Gateway). One big problem I have is the connectivity of both platforms since IB requires a restart of the gateway from time to time and my strategies are designed for longer time periods (weeks to months). Today I enountered the problem that right after the start of the day the only open position I was holding over night was closed by NT8 with the comment of 'Synchronize'. Click image for larger version

Name:	Screenshot.PNG
Views:	92
Size:	13.6 KB
ID:	1195735 A little later another position was opened and then I disconnected IB Gateway (for testing reasons). When I turned on IB Gatway again and established the connection the second position was also closed with the same comment. Click image for larger version

Name:	Screenshot2.PNG
Views:	54
Size:	16.7 KB
ID:	1195736Click image for larger version

Name:	Screenshot3.PNG
Views:	62
Size:	14.3 KB
ID:	1195737 My start behavior is currently set to 'Wait until flat, synchronize aco****'. Is this the problem?

    Kind regards and thanks in advance!

    #2
    Hello funtra513,

    The Wait until flat start behavior will always start the strategy position as flat. If synchronize is on, this will flatten the account.

    See the post below about resuming a strategy position and orders.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,788 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    837 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,293 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    12 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    62 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X