Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overnight Positions

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

    Overnight Positions

    We are trading US Stocks using Interactive Brokers and have a requirement to keep the strategy running overnight. To elaborate:

    1. A position that was opened today, should be recognized by strategy when market opens tomorrow morning.
    2. Any exit orders (limit orders), that we sent today, should be recognized by strategy when market opens tomorrow morning.

    In essence, it should keep running as if nothing happened and the next data that came in after last data event today is next morning.

    For this we believe the following setting should do the trick:
    ConnectionLossHandling = ConnectionLossHandling.KeepRunning;

    However, it seems like we faced issues and some of the strategies disabled, when market reopened today after Friday. In this regard I'm attaching the logs 1st, 2nd and 4th of November.

    Looking forward to a quick resolution.

    Thanks,
    Aziz
    Last edited by NinjaTrader_PatrickH; 11-04-2013, 12:01 PM.

    #2
    Hello Aziz,

    Thank you for your post.

    The strategy, if disabled will not be able to retrieve the position and orders from the previous instance. From your Log file on Friday the following error is listed:
    TWS forced your connection to close. NinjaTrader is unable to automatically reconnect. Please shut down NinjaTrader and reconnect manually to TWS: An established connection was aborted by the software in your host machine
    This means the strategies were disabled as you had to restart NinjaTrader to re-connect to Interactive Broker.

    Unfortunately, there is no method around this when the scheduled maintenance for Interactive Brokers occurs.

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    7 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X