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 00nevest, Today, 02:27 PM
    0 responses
    1 view
    0 likes
    Last Post 00nevest  
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Started by Jonker, Today, 01:19 PM
    0 responses
    2 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    9 views
    0 likes
    Last Post futtrader  
    Working...
    X