Wednesday, March 14, 2018

Position sizing, new approach

I've recently tested quantopian.com platform for easy backtesting. I essentially plugged in the valuations I posted previously. Using quantopian forced me to come up with an algorithmic approach to sizing positions.
I ended up using a simple and natural approach. For each security I have a target price. Therefore I can calculate a percentage upside as (target_price - current_price) / current_price. Then I summarize all upsides into a total_upside and allocate to each security upside / total_upside percent of funds. This keeps me 100% in the market as long as any security has any upside (they usually did, but it varied greatly from single-digit percent to 4x).

I think this approach strikes a good balance between maximizing my upside, while keeping some diversification (if my valuations are correct, of course). Strictly speaking to maximize upside I should  put 100% in the stock that has the highest upside at given point in time, but that will result in no diversification and no room for valuation error.

The full results are here. I would not pay too much attention to numbers, as the stated goal of mine (maximize returns) and risk metric (permanent capital loss due to misunderstanding of the underlying business) is quite different from what alpha/beta or volatility measure. I also used a very simple approach, with only 3-6 securities in the portfolio, annual updates to intrinsic values, etc. Having Google (which performed very well) in the portfolio skews dataset in two ways - it's of course a plus, but early on as Google price increases, the allocation decreases significantly and a good chunk of the gains is 'missed' that way.

The biggest benefit for me from this exercise is the new approach to portfolio sizing. I don't plan to use quantopian, but I will look into using Interactive Brokers API to automatically place my orders according to my intrinsic valuations and in line with portfolio sizing.

Friday, March 9, 2018

Capital light vs. capital intensive and what is the right price

I have been following Amazon as a business and to a lesser extent as a stock, but I have refrained from investing in it. The price seemed so high all the time that I did not even try to value it. Even if I would come up with a scenario in which the current price is low, I would likely see many reasons why it's 'too optimistic' and refrain from investing anyway. Of course I missed out a lot of gains and I might be missing more of them in the future. But it's just not in my DNA.

In lieu of Amazon, I'm thinking of other entities that could be significant in online retail. In the US market, it's hard for me to think of someone else than Walmart. They certainly know how to run lean operations and be the low-cost competitor. They are not as savvy in online world as Amazon, but I do not see a fundamental reason why they couldn't crack this.

My only issue is valuation - while Walmart is certainly far from Amazon's expensiveness, it's not exactly cheap either. My only solution for this for now is to buy a small piece (~1% of portfolio) and start tracking the company much more closely. Hopefully it can get cheaper or I can become more convinced that they'll not only defend but even increase their market share going forward.