When I test EFS scripts designed to trade multiple accounts, I first use accounts in eSignal paper trading (e.g. DEMO, DEMO2, DEMO3). Another level of testing involves testing with paper trading accounts at Interactive Brokers (e.g. DU123456). A final round of testing involves simultaneous trading using a combination of both eSignal and IB paper trading accounts, all using one chart and one EFS script.
In the last couple of days, I noticed that eSignal was hanging up and practically freezing because simulated trades or cancels sent to IB TWS were causing a timeout error (at "line 0") in EFS. I used debug print statements to Formula Output to confirm that the timeout occurred when a trade or order cancellation was executed.
This led me to question whether EFS was designed to handle orders to multiple brokers. Is there a known limitation or instability when multiple broker platforms (i.e. multiple connections) are accessed by the same script? Does some underlying trade handling module get confused? Obviously a chart can display orders for only one account on one connection, but the script running on a chart can access multiple connections and multiple accounts. Nevertheless, I am concerned about the timeout error, which I cannot catch using error handling in code, and the desktop client does not recover gracefully.
In addition, I have other charts running scripts that access the same broker connections, without timeout errors, but none of those scripts handle orders in multiple connections inside one single chart. In other words, when I run a script which handles orders to one connection, unexplained timeout errors never occur.
In the last couple of days, I noticed that eSignal was hanging up and practically freezing because simulated trades or cancels sent to IB TWS were causing a timeout error (at "line 0") in EFS. I used debug print statements to Formula Output to confirm that the timeout occurred when a trade or order cancellation was executed.
This led me to question whether EFS was designed to handle orders to multiple brokers. Is there a known limitation or instability when multiple broker platforms (i.e. multiple connections) are accessed by the same script? Does some underlying trade handling module get confused? Obviously a chart can display orders for only one account on one connection, but the script running on a chart can access multiple connections and multiple accounts. Nevertheless, I am concerned about the timeout error, which I cannot catch using error handling in code, and the desktop client does not recover gracefully.
In addition, I have other charts running scripts that access the same broker connections, without timeout errors, but none of those scripts handle orders in multiple connections inside one single chart. In other words, when I run a script which handles orders to one connection, unexplained timeout errors never occur.
Comment