Hi! I want to write a little program in Java that monitors the NYSE TICK. When the TICK gets to +400, then I'd sell 100 shares of SPY. If the TICK drops down to -400, then I'd buy 100 shares of SPY.
1) I want to deploy this little program to the IB trading platform. Please tell me how the system work together (like how my program would monitor the TICK values. I assume IB provides some sort of a unique variable name and TCP port for TICK values, so one's Java program would poll the variable name and the port for a change in value, then get them off the IB server, and send and display them on my monitor. Did I get the process down correctly?
2) Please tell me how my program would interact with IB TWS, so the TICK data can be exchanged and my program would process the logic (TICK +/- 400).
3) How about sending in sell and buy order? Does IB TWS special variables for sell order and buy order (where one has to place his buy/sell order data in TWS, so IB can understand and execute the order.
4)... chances are I haven't listed all the issues or configurations needed for this type of setup. Thank you for your inputs!
1) I want to deploy this little program to the IB trading platform. Please tell me how the system work together (like how my program would monitor the TICK values. I assume IB provides some sort of a unique variable name and TCP port for TICK values, so one's Java program would poll the variable name and the port for a change in value, then get them off the IB server, and send and display them on my monitor. Did I get the process down correctly?
2) Please tell me how my program would interact with IB TWS, so the TICK data can be exchanged and my program would process the logic (TICK +/- 400).
3) How about sending in sell and buy order? Does IB TWS special variables for sell order and buy order (where one has to place his buy/sell order data in TWS, so IB can understand and execute the order.
4)... chances are I haven't listed all the issues or configurations needed for this type of setup. Thank you for your inputs!
, then I assume I'm going to call a variable TICK-NYSE in my java program, then please tell how my Java program would interact with IB TWS, so it knows where to obtain the TICK-NYSE from and TWS would understand what my program is requesting. I think I'd need to specify the IP address of TWS server in my program?... (I just know a little bit of everything