¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Automatic chart on TWS


 

Hi,

I algo trade with the Python API. The TWS platform displays the action and I found a simple way to have charts update to the stock symbol that got triggred by the algo using pyautogui.
With a screen of 16 charts I have the script move the mouse to the symbol box of the chart, type the symbol ans do shft+enter to display the traded symbol.
But this only works for stock symbols. I would like to make it work for options. The symbol name of an oiption on TWS is like this "AAPL Nov27'20 120 CALL" but typing it the in the chart box results in an error.
For options charting you typically type the equity symbol, scroll down to options and then search the options chains.

There's way to do something with pyautogui by knowing where the options symbol will appear in a portfolio window, right-cliking on it, scroll down to charts and click New Chart, but the chart will pop up at a random place on the screen with a random size. I want the charts to stay at predetermined locations ans sizes.

Anybody playing with this stuff?

Thanks

Join [email protected] to automatically receive all group messages.