Author Topic: Secondary Paper Trading Account  (Read 3635 times)

Anthony Sichi

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Secondary Paper Trading Account
« on: March 20, 2014, 09:52:03 am »
I currently am running IB Gateway and binding one portfolio to a live account.

I have created a second portfolio and would like to run it on a paper trading account. 

According to the manual I must run a second IB Gateway and a second instance of PTL trader, but when I try to run another instance of the IB Gateway, it won't let me because it requires a second login. 

Is this correct?  Am I doing something wrong?

Anthony

admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 336
  • Karma: +13/-0
    • Pair Trading Lab
Re: Secondary Paper Trading Account
« Reply #1 on: March 21, 2014, 08:17:28 am »
Dear Anthony,

you are correct, you have to run another instance of IB Gateway using a different API port using the paper account credentials (these are different then your live credentials) and the second IB Gateway instance must use separate settings folder.

Then you start second instance of PTL Trader and connect it to the API port of the second IB instance.

This works (used this setup for about a week), but I remember there used to be some issues of running two IB Gateway instances on same machine (not sure if IB fixed all of them already)...therefore I recommend to run the paper account setup (IB Gateway + PTL Trader) on another VPS instance for better stability. It seems IB developers have not fully tested the IB Gateway running in multiple instances on a single machine.