My attempts to add instruments have so far been unsuccessful and I believe this to be a simple fix by someone with greater Java understanding than myself. Any help would be truly appreciated.

The current functioning code is as shown below. This will automatically execute a trade based on criteria within a certain time range in real time and is used to generate historical performance while back testing. Currently it can test these parameters for one instrument at a time. Optimally, the strategy would make use of up to 20 instruments.