TWS settings and performance

TWS auto-lock and API availability

Quick answer

If the app stops after you leave TWS idle, check Lock and Exit. Also check whether the computer went to sleep. These are different controls. Some IBKR account regions have different lock rules, so a box shown in another guide may not exist for your account.

Educational software guidance. Trading involves risk. Read the financial and information disclaimers.

Step by step

  1. 1 Note whether the break follows a consistent period without user activity.
  2. 2 Open Lock and Exit and read the current inactivity control.
  3. 3 Compare the available controls with IBKR’s entity-specific API guidance.
  4. 4 Choose a supported operating setup that also keeps access to the machine controlled.
  5. 5 Observe one planned idle period and check the API connection afterward.

A practical example

An app works while you are at the desk but stops after you leave it alone. Write down how long the gap was. Then look at TWS Lock and Exit. Also note whether the Mac or PC went to sleep. Those are two separate events. Some accounts do not offer the same TWS lock choices as others. If a control is missing, check the broker’s rule for your account before reinstalling the app. A screenshot from a friend’s account may show a choice your account does not have. Keep the computer secure while you choose a supported way to run it.

Illustrative scenario, not a record of a trade placed during this review.

Screen reference

Start in Mosaic with File → Global Configuration. Then choose the panel named in the steps.

TWS Mosaic File menu with Global Configuration and Layout Settings
Open Global Configuration from File in Mosaic. This capture excludes the account header. Captured in TWS paper mode on 3 October 2026. Open the image for full size.
TWS Lock and Exit settings showing lock and restart controls
Compare the configured time and selected restart or logoff mode. Availability can differ by account entity. Captured in TWS paper mode on 3 October 2026. Open the image for full size.
How to confirm the result The behavior after inactivity should match the supported setup for your account.

Mistake to avoid

A TWS app-lock option and your operating system’s screen lock are different controls.

Common questions

Why is Never lock missing?

IBKR documents regional differences, including limitations for IBHK users.

Can I assume Gateway behaves identically?

Check IBKR’s account-specific guidance; do not infer it from TWS alone.

Financial and information disclaimers

Financial disclaimer

These guides explain software. They are for education, not financial, investment, tax, or legal advice. No example is a suggestion to buy or sell a product or use a trading strategy. Trading can lose money, including all funds you put at risk. With margin, futures, short sales, or some options, losses can exceed your starting funds. Automation can fail, send duplicate orders, or act late. Stops do not guarantee a fill or a price. Review your orders and positions, and seek advice from a qualified professional for your own needs. Paper trades, examples, and past results do not predict live results or promise a profit.

Information disclaimer

This is general help based on the sources and check date shown on the page. Screens, settings, fees, data access, and product support can change or differ by app version, account, country, and broker. The content may contain errors or become out of date; accuracy, completeness, and continuous service are not guaranteed. Check current broker and app instructions before acting. Screenshots show where controls are; they do not prove that an order test passed. This guide does not replace broker terms or risk notices. References to IBKR and TradingView identify their products and do not imply their endorsement of this guide.

IBKR risk disclosures · IBKR paper-trading limits · SEC guidance on automated investment tools

PickMyTrade help · Independent guidance for Trader Workstation and the desktop integration. TWS images show paper trading. Other applications are named in the image captions. Settings and availability can vary by version and account.

Automate TradingView alerts to Interactive Brokers

See the IBKR integration