I have an automated trading application that is written in java. The program runs by clicking on a shortcut which contains parameters that are passed to to the program. In the example below it fires up the program called monkey trader and connects to port 7501 in TWS. The other info instructs the program what profits and losses it should trade. "