I've playing with my IB papertrade in QC live trade and tonight I had a problem with one of my orders from my autamtic algorithm.
1: Execute init market order +1 at 2024-08-04 20:00:00 at 18,258.25
2: Send stop -1 at 18,054 and objective -1 at 18,540 at 2024-08-04 20:00:00
3: Execute exit market order -1 at 17,525 at 2024-08-05 2:30
I want to know why my stop didn't execute, if its send to Interactive Brokers correctly and it was open.
Mia Alissi
There could be several reasons why your stop order didn't execute. Here are a few possibilities:
API Outages: Sometimes the Interactive Brokers (IB) API may be down, which could prevent your orders from being executed. You can check the IB status page to see if the API is currently working.
Order Timing: There might be a delay between when your algorithm sends the order and when it's executed by IB. This could be due to network latency, API processing time, or other factors. IB has a 400 millisecond fill time for live orders. If your stop order was sent close to the time the market price reached your stop level, it's possible that the price moved past your stop level before the order was executed.
Order Status: It's also possible that there was an issue with the order status. You can check the logs to find the IDs of orders that you sent but were not executed. Compare the QC logs of the orders with the TWS Order window. These timings might give you a hint about what happened.
If you continue to experience issues with live trading, you can contact support@quantconnect.com for further assistance.
Also, you can check the Interactive Brokers section in the QuantConnect documentation for more information about live trading with IB.
Please note that these are just possible explanations. Without more specific information about your algorithm and the exact circumstances of the order, it's difficult to determine the exact cause of the issue.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Francisco Javier Saladich
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!