Pair Trading Lab Portfolios

From Pair Trading Lab WIKI
Revision as of 10:24, 17 May 2013 by Admin (Talk | contribs)

Jump to: navigation, search

Portfolio is in the terms of our website a group of pair trading strategies traded together. Strategies are independent but the parent portfolio controls money management rules. Also the portfolio has some additional settings and rules applied on all child strategies.

You can manage portfolios in the Portfolio Manager section of the website as long you are a Premium Member.

Ptl-portmanager.png

At this moment the only use of portfolios is to trade them in real-time using the PTL Trader application. But later, there will be more features available - you will be able to backtest and optimize whole portfolios. But we are not there yet, this is a future concept.

So, the portfolio is a group of pair trading strategies. You can imagine situation like this:

  • Portfolio: Live Portfolio
    • MSFT-AAPL, Ratio Model, MA Period: 15, StdDev Period: 15, ...
    • MA-V, Ratio Model, MA Period: 25, StdDev Period: 25, ...
    • KO-PEP, Residual Model, Linreg Period: 30, ...
    • F-GM, Residual Model, Linreg Period: 35, Entry Threshold: 1.5, ...
  • Portfolio: Paper Portfolio
    • GLD-GDX, Residual Model, Linreg Period: 30, ...
    • SPY-QQQ, Ratio Model, MA Period: 15, StdDev Period: 15, ...
  • Portfolio: Another portfolio
    • INTC-AMD, Ratio Model, MA Period: 15, StdDev Period: 15, ...

So, it means, that pairs MSFT-AAPL, MA-V, KO-PEP, F-GM are to be traded live together, sharing money management rules.

Portfolios are just groups of trading strategies, until you bind them to IB account in PTL Trader. Then they are executed using PTL Trader on your IB account, until you unbind them.

Portfolio, which is not bound to any IB account:

  • may be modified or deleted using Portfolio Manager
  • may be modified using PTL Trader application
  • strategies may be modified, deleted or added using Portfolio Manager
  • strategies may be deleted using PTL Trader
  • some strategy properties may be modified using PTL Trader
  • may be bound to an IB account in PTL Trader

Portfolio, which is already bound to an IB account:

  • new strategies may be still added using Portfolio Manager
  • strategies may be deleted using PTL Trader
  • some strategy and portfolio properties may be modified using PTL Trader
  • may be unbound from an IB account in PTL Trader

Start license allows users to use two IB accounts at the same time, so two portfolios may be bound to an IB account at the same time.

Portfolio Properties

(todo)

Money Management

Pair strategies grouped in a portfolio share same management rules. You can imagine the Portfolio is actually a manager and all strategies have to ask the manager if they can open a position and how big the position should be.

The money management used in our software is slot based. That means, you configure (per portfolio) how many slots are there. Typical value is in range in 5-15. So if you say, for instance, my portfolio has 5 slots available, you say there can be max 5 standard pair positions opened at the same time. So it does not matter, how many active strategies you have in your portfolio - the system guarantees, there will never be more than 5 slots used = max 5 pair opened at the same time. If all slots are used, it means you already have 5 pairs opened and your account margin is used up to the maximum safe limit. In this situation, no new pairs are opened until some other position is closed.

Why we have slots instead of just saying how many pairs can be opened at the same time? Slots make it more flexible. Imagine situation, where you have pairs with very nice recent profit experience, on the other hand you have some pairs which are not so good recently. With slots, you can say - the first pair strategy works very well, so let's boost it and give it more weight - for instance, you can say it will occupy two slots instead of one. On the other hand, for not-so-good pairs, you can assign only half of the slot to it, until it gets better.

Actually, setting the slot occupation for pair strategy is equivalent to adjusting the money management weight. You can change the slot occupation in range from 0.1 (10% of the slot) to 2.0 (200% of the slot). Default occupation is 1, which means 1 slot = 1 pair.

Let's look at some example. Imagine a portfolio with 5 slots configured, running on account having balance of 10,000 USD. Then the situation might look like this:

Slot-example.png

One slot in this case represents account balance of 10000/5 = 2000 USD.

  • first slot is used by opened KO-PEP position, slot occupation is 1.0
    • with margin of 50%, 2000 USD is allocated to KO position, 2000 USD is allocated to PEP position
  • second slot is used by MA-V position, slot occupation is 1.0
    • with margin of 50%, 2000 USD is allocated to MA position, 2000 USD is allocated to V position
  • third and fourth slot is used by MCHP-LLTC position, slot occupation is boosted to 2.0 (two slots are used for this position)
    • with margin of 50%, 4000 USD is allocated to MCHP position, 4000 USD is allocated to LLTC position
  • a half of the last slot is used by F-GM position, slot occupation is lowered to 0.5 (only a half of the slot is used for this position)
    • with margin of 50%, 1000 USD is allocated to F position, 1000 USD is allocated to GM position
  • another half of the last slot is still free - whenever an entry signal fires for any pair strategy with occupation <=0.5 (so it would fit the space), position can be opened immediately

Remark: In case there is no free slot space to open new positions, all strategies wait for the free space. When new slot space becomes available, new pair positions are opened in FIFO (first-in-first-out) manner.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox