Hi,
I am having trouble sending BUY and SELL orders via an EFS script that I programmed. Single contract orders are sent successfully, but anytime I have 2+ contracts the orders get hung up in the Interactive Brokers TWS while it waits for the "transmit" button to be pressed by the user. Can anyone help me with this?
I am using Esig 8.0 and the following is the relative code:
sellMarket(getSymbol(), gnNumContractsShort)
....where gnNumContractsShort is an integer >0.
buyMarket(getSymbol(), gnNumContractsLong);
... where gnNumContractsLong is an integer >0.
When gnNumContractsLong (or Short) = 1, the code executes properly and the order is filled. When gnNumContractsLong (or Short) = 2+, the IB TWS receives the order, but it doesn't get transmitted.
Any insight would be much appreciated.
I am having trouble sending BUY and SELL orders via an EFS script that I programmed. Single contract orders are sent successfully, but anytime I have 2+ contracts the orders get hung up in the Interactive Brokers TWS while it waits for the "transmit" button to be pressed by the user. Can anyone help me with this?
I am using Esig 8.0 and the following is the relative code:
sellMarket(getSymbol(), gnNumContractsShort)
....where gnNumContractsShort is an integer >0.
buyMarket(getSymbol(), gnNumContractsLong);
... where gnNumContractsLong is an integer >0.
When gnNumContractsLong (or Short) = 1, the code executes properly and the order is filled. When gnNumContractsLong (or Short) = 2+, the IB TWS receives the order, but it doesn't get transmitted.
Any insight would be much appreciated.
Comment