TWS-Link / TradeStation Users / PC mutiple-cores / 4 orchart.exe processes / Order handling problems?
Posted: Tue Mar 13, 2018 6:13 am
Hello, you mentioned that its ideal for Tradestation users to run Tradestation 9.1 using a single core on a quad-core PC to allow the trader to do proper order handling. We have a different script attached to 23 futures market charts (script 1 is attached to chart 1 and is using CPU 1 // and script 2 is attached to chart 2 which is using CPU 1, and so on) in Tradestation. We have some questions which are as follows:
--> In each of the 23 different scripts should we connect to the IB API using the same "client id" number i.e. number 1? So in script 1 we would have retcode1 = CONNECT("",7496,1,500); and in script 2 we would have the same line at the top of the code i.e. retcode2 = CONNECT("",7496,1,500); Is this correct?
--> Also, if we place some orders and then TS crashes and has to be restarted as well as restarting the entire PC (to be safe), if the TS program is restarted and runs on a single core, but this time it runs on CPU 2, does this cause a problem for order handling? i.e. sometimes the TS "charting" process called ORCHART.exe will run on CPU 1 and other times it will run on CPU 2 when TS is re-started or re-launched? We can't control which CPU (my quad-core PC has 8 CPUs) the Tradestation program (app) uses each time TS is restarted. Could this be a problem? If so, why is this a problem? If so how do we solve this problem?
Thanks in advance. Regards, Rod
--> In each of the 23 different scripts should we connect to the IB API using the same "client id" number i.e. number 1? So in script 1 we would have retcode1 = CONNECT("",7496,1,500); and in script 2 we would have the same line at the top of the code i.e. retcode2 = CONNECT("",7496,1,500); Is this correct?
--> Also, if we place some orders and then TS crashes and has to be restarted as well as restarting the entire PC (to be safe), if the TS program is restarted and runs on a single core, but this time it runs on CPU 2, does this cause a problem for order handling? i.e. sometimes the TS "charting" process called ORCHART.exe will run on CPU 1 and other times it will run on CPU 2 when TS is re-started or re-launched? We can't control which CPU (my quad-core PC has 8 CPUs) the Tradestation program (app) uses each time TS is restarted. Could this be a problem? If so, why is this a problem? If so how do we solve this problem?
Thanks in advance. Regards, Rod