Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitOnClose not working

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

    ExitOnClose not working

    Hi
    I have a day trading strategy that needs to close all positions right before the close. I trade US stocks. So I use ExitOnClose and ExitOnCloseSeconds as in the screenshot below




    It does not seem to work on live data. I am using Interactive Brokers. I have to change my computer time to tomrrow to make it work. For example, today is 9/3/2013. I had to change the computer clock to 9/4/2013 then I saw ExitOnClose at the last bar. Any idea why it is like that? How do I fix this?

    #2
    sys_trader, welcome to our forums - ExitOnClose would be tied to the PC clock in realtime (the seconds part only work here not in backtesting). Which bars type / chart are you working with and which IB TWS version is exactly used?

    Comment


      #3
      I use 3 minute candle sticks and IB web start which always downloads the latest version. It seemed to work properly when I used my Interactive Brokers account today. It was not yesterday with the sim 101 account. I will test it a bit more. Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      29 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      227 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      309 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X