Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Suppress "Navigating away from <ticker> will reset the order entry." warning #136

Closed
stenri opened this issue Sep 5, 2021 · 2 comments

Comments

@stenri
Copy link

stenri commented Sep 5, 2021

I propose to add a new SuppressNavigatingAwayWarning option which allows a user to suppress "Navigating away from will reset the order entry." warning.

When user changes Order Type, Quantity or other fields in Order Entry dialog and switches to a different ticker, TWS displays dialog box with a warning:

There are many questions in the internet how to disable this warning, and unfortunately, TWS does not have built-in option to turn it off. See:

https://www.reddit.com/r/interactivebrokers/comments/m2ugqk/remove_navigating_away_popup_message/

https://www.elitetrader.com/et/threads/tws-2-specific-questions-remove-from-for-you-and-disable-order-entry-reset.355898/

I myself find this warning very annoying. So I developed a patch to add SuppressNavigatingAwayWarning option to IBC:

# Suppress Navigating Away Warning
# --------------------------------
#
# If you change Order Type, Quantity or other fields in Order Entry
# dialog and switch to a different ticker in a linked window, 
# TWS displays dialog box with a warning:
#
# "Navigating away from <ticker> will reset the order entry." 
#
# TWS doesn't have built-in option to disable this warning.
#
#   yes   means the dialog is dismissed as though the user had
#         clicked the 'Continue' button: this means that you accept
#         Order Entry fields are reset to default values while
#         switching to different ticker.
#
#   no    means the dialog remains on display and must be
#         handled by the user.

SuppressNavigatingAwayWarning=no

See my pull request below.

stenri pushed a commit to stenri/IBC that referenced this issue Sep 5, 2021
@rlktradewright
Copy link
Member

I'm currently working on a generic way of dealing with this sort of annoying dialog. This will involve a new setting in config.ini which will describe how to recognise such dialogs and what action to take. Once this is implemented, handling these dialogs will not involve any new code, just a matter of editing config.ini and restarting.

It'll probably be a week or two before this is ready (I'm not finding much time for working on IBC at the moment), so would you mind waiting for that.

@stenri
Copy link
Author

stenri commented Sep 6, 2021

Ok, thanks for letting me know! I'm not in a hurry and can wait till you release a generic feature since I have a solution that works for me right now.

@stenri stenri closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants