My health has been pretty bad this year, and I haven't traded much (so no posting my openings here). I checked our Firm records today... we placed about 2 million shares of opg orders, filled on about 450,000 shares. Mostly our top guys... so I assume they're doing well. Don
Thanks for the update Don. I am pleased to see that your guys are still trading and most probably doing well, they would not be trading otherwise! Trading is cool but life as other more important things to offer. Our health and our familly should come first. I wish you all the best.
Hi everyone, can someone point me to an API script for IB's TWS to trade openings with the ability to determine a percentage profit target calculated from the filled entry price? Much thanks in advance! Saico P.S.: Don, I wish you all the best for the future and a speedy recovery!
You can use the IB Excel API with the conditional order page. Set up the OPG order in one line and a conditional order that triggers a limit profit taking with a defined price (you can use a formula to calculate the price) that will trigger if you OPG order is filled. There is a conditional order example in the IB API documentation. If you are clueless about Excel I can't really help you but if have some knowledge I can help you with the details (order type, ...). I am rebuilding my spreadsheet and may get back into this game.
The first step is to get the quote into the Tickers sheet to work. Once you get that it should be easy. After that you will be able to send all your orders with the API and then add your take profit conditional orders. There are many things you can do. Suppose you have many stocks in your list then while reading the news in the morning if there is one news you could program your sheet so that all you cancel all stocks in a specific sector if there is a major news on one stock. Automate the earnings and dividends, ...
Hi total_keops, setting up the sheet wasn't a problem so far. What is more difficult for me to do is what syntax to use for the condition statement line, which is ''sell open positions by creating a limit order x% away from the actual filling price". saico
Here is a sample but you could have figure it out with the IB docs. Take it as an example and modify it according to your needs. It may not be exactly what I would use. Enjoy
Placed orders on 11 stocks, cancelled 5 before the open. No fills. I had a very wide enveloppe and did not wanted to get filled. Just wanted to get into the beat and see how my spreadsheet was. A couple of problems occured so I will start again tomorow with a very wide enveloppe just to get all set up correctly. Did not managed to get my charts setup in time! Some stocks openned way after 9:30. Thanks Don still have the FV on his webpage.