A additional OptraBot instance on a machine is required, if you want to run the OptraBot with a second broker account with your existing Interactive Broker user and the same Trader Workstation instance.

With a standard OptraBot installation you have created a folder called OptraBot from where it is running. Inside this folder you find e.g. the configuration file config.yaml and the optrabot.db file.

In order to run a additional OptraBot instance in parallel to the existing one, create a new folder e.g. OptraBot2nd in parallel to the existing folder OptraBot. and copy the config.yaml file from the folder OptraBot to the new folder OptraBot2nd.

Open the copied configuration file config.yaml from the new instance folder with the Notepad editor and perform the following adjustments:

  1. Change the port number to a unused port number e.g. 8081
  2. Change the agentid parameter to a unique value different to your other OptraBot instances e.g. optrabot2nd
  3. In the tws section change the clientid parameter to a unique value which is not used by other TWS API applications already e.g. 22
  4. Adjust the trade templates according to what you want to trade with this instance. At least change the account number, because the additional instance must not trade on the same account as the existing instance.

Save the adjusted configuration file.

Now you may create a dedicated Desktop Shortcut for this new OptraBot instance and run it using this shortcut. Otherwise you may run it from the command line.