Tuesday, September 29, 2015

Experimenting with the Long Short Portfolio

Since June I've started with experimenting with the "long/short" portfolio where cash is deployed to buy companies that I have some potential upside and short companies where there is a good amount of down side based on fundamental analysis.

My screens so far have found very few good companies to buy where as I've found far more companies since over the summer period (June to August) where were my (albeit crude) models have indicated that they were over priced. It is interesting to see that the over market trend since over the summer has pushed the price of many companies downwards to the point where many companies that were over valued somewhat more in line with the prices where they should be (or to the point where betting against them is certainly not worth the time).

Interestingly, integration of the models applied into mid-long term trading decisions have shown positive results sine mid-June. The long positions have generally kept the portfolio flat where as going against the worst companies have yielded the biggest returns due to the risk off nature of the markets that we are seeing of late. The portfolio currently stands with close to a 50%-50% split between long and short positions.

The plot below shows a good negative correlation with the market, especially with the worst companies bringing in most of the gains (performance in purple).

When will be the right time to start rebalancing the portfolio? I am not entirely sure just yet, I still think there is more downside action to occur. Only time will tell, in the mean time--more time needs to be invested to developing better valuation models.

Saturday, August 01, 2015

Not a whole lot of value in the markets

I've been looking at the markets recently and I just haven't been finding all that many good things to buy recently. I've got a few long positions in a few companies have looks to have good fundamentals but my biggest wins have been coming from taking short positions against companies that I think have significant down sides. 

Companies that I think are over values at the moment are SHLD, NAV and ADRO. Been holding these positions for a month now and they've been paying back significantly well. Will be looking for more down side. There are a few other companies that my scans have been piking up with decent down side and they've played out exactly as I've been expecting over the last few months.

It's earnings season right now so it will be interesting to watch how the markets react to earnings and updated growth rates of the companies in the market.

Friday, July 03, 2015

Not sure what is going on in the market

Something interesting is going on with the markets right now and it's throwing off stock prices dependent on the following inputs:
  • Revenue
  • Operating Expenses
  • Total Assets
  • Total Liabilities
I've gone through all sectors and did a linear regression by sector to determine the coefficients to be applied to each sector and got the following results:

Sector Revenue Coeff Operating Exp Coeff Assets Coeff Liabilities Coeff
n/a 1.757951413 -1.685802435 1.058985395 -0.940065628
Consumer Durables -0.316979969 6.198310777 1.4757337 -1.411166774
Transportation 0.497272033 0.259618616 2.065928424 -2.076496214
Finance 0.87978465 -0.949490282 1.184012636 -1.179976195
Public Utilities 0.016493317 -0.665229136 0.835269278 -0.289090479
Energy 0.065892306 -0.669861102 1.582121055 -1.317696686
Miscellaneous -0.750867391 8.027392438 2.88486087 -2.435433498
Consumer Non-Durables -0.038891497 3.787788767 0.218961592 0.294737121
Health Care 0.128296602 -0.299308471 4.758685759 -4.904842854
Consumer Services 0.871313342 1.681460089 0.910108808 -0.729311004
Basic Industries 0.495887515 2.285893733 1.239013616 -0.80046736
Capital Goods 0.498509342 5.692384963 0.648907514 -0.513628997
Technology -0.528505482 6.342940229 2.070839539 -2.050838295
As expected we see the following obvious impacts:
  • Assets impact stock prices positively
  • Liabilities impact stock prices negatively
  • Revenue, generally impacts stock price positively
  • The operating expense coeff is erratic
As of this moment I've focused on companies that have a capitalisation of over $5B using closing closing stock data from 2015-07-01 from the US markets.

I'll next need to run calculations based on more historical data to see how these numbers have evolved over different times during the market. Computations done earlier this year have yielded more consistent results with the revenue coeffs and the operating expense coeffs showing consistently negative values.

I have a feeling that current market situation are throwing off the linear regression algorithm. 

Wednesday, April 29, 2015

Experimenting with living life as a digital nomad

Call me old fashioned but I've always been a desktop PC kind of person. My main workstation at home is a custom built system with a decent CPU, ample of hard drive space and a pair of monitors (one of which being a "retina" style right resolution monitor). I've always enjoyed using my PC at home but I'm generally far less productive when working from home. There simply are too many distractions at home-- the bed being near by beckoning me to take naps, the fridge stocked with good food to snack on and the comfortable chair that I sit on at home which entices me to relax (which include watching videos and listening to music instead of doing something productive). Also humans are creatures of habits and I've simply lost the habit to do any sort of productive work at home. Home is where relaxing happens.

For the last 3 years, I haven't really used a laptop since I never seemed to have good experiences working with them. They ended breaking down after 2-3 years of use and being caught without a PC for weeks while the laptop is in repair (not to mention the high price of repairing them) had led me to start using desktops instead which overall have far better bang for buck in terms of performance and are cheap to repair.

I've had the pleasure of using a 2008 MacBook Pro for the last 3 years. The only problem with this laptop is that the battery only lasts for 2 hours, leaving me with a brick of aluminium after the spirit leaves the battery. Interestingly enough, I went to a programming conferree last year and was the only person that switched to using pen and paper to take notes after the juice on my laptop had died. How times have changed... and how I've not kept up with laptop technology.

After much waiting (mainly because of the production delays for the new low power CPUs that Intel was building and that Apple had intended on to use in their refreshed brands of MacBooks and MacBook pros) I've finally shelled out some significant cash to buy myself a new MacBook pro.

With spring conducive to hopping on the bicycle to head out to new places. I've started exploring the city again with the laptop stashed in my backpack, hitting small cafes along the way. The change to working in new environments and then changing them whenever I feel like it is great. Done with the coffee somewhere and need to stretch my legs? Just hop on the bike and head to the park. Have an idea or something that I want to work on? Find another cafe and buy a coffee and work away.

This is exceptionally wonderful when the weather is good. There are some challenges however: 
  • Not all Wifi connections are good
  • I've run into subnet collisions when using my VPN (meaning I can't connect to some resources at home)
Other then that, I've found a few nice cafes to work out, check mail, communicate with people and generally enjoy the outside. Getting out of the house is a wonderful thing and I highly recommend it to everyone that has predominately worked at home or in a normal office. It might not work for everyone but it's something nice to try.

Later on when I figure out how to post pictures from my iPhone in to this blog then things may get more interesting in the future (well that is what Facebook is all about right?).

Sunday, January 11, 2015

How much could you profit by chartering a super tanker for oil storage?

The stock market is going crazy right now with oil tanking companies seeing massive increases in share prices over the last few days.

The screen cap is from FRO as of Jan 9th, an impressive 56% increase in share price over the last 5 days.



Stories are starting to pop up in various news sites noting the replay of the usage of super tankers as storage facilities for so that you can buy oil now and sell them at a higher price. Let's do some cursory math:

Some Basic details:
  • WTI is trading at $48.21 for the current Feb contracts
  • The Dec contracts are trading with a ~$7 spread to the Feb contracts
  • A suezmax tanker has a daily running cost of $12,000 and 1 million barrels of oil capacity 
  • The gross profit margin is 75% for one ship
(Details are extracted from the following link)

Some calculations:
  • Chartering one of these ships for 10 months will cost ~ $6.3 million
  • The profit from this spread trade using one tanker is ~ $7 million
  • The cost of the oil upfront is ~ $48.2 million
  • Your profit from this trade is = $675 k or a 1.4% profit margin
As of this moment, I somewhat doubt that companies that have $48.2 million on hand will be willing to invest this amount of money for a 1.4% return over the next 10 months. It wouldn't make a whole lot of sense to be borrowing this money from any sort of bank to make this kind of profit in the first place.

Also, of an interesting note, it takes approximately 10 for a tanker to go from Tokyo to the Vancouver. The only companies that would be profiting the most from this activity would be companies that manage the purchase of oil and their delivery in some future point of time.

I would not expect oil shipping companies to see an increase in ship utility just yet unless countries away from the major oil distribution hubs are looking to bolster their oil reserves at current prices.

Tuesday, January 06, 2015

The Game of Oil

I've been watching oil news like a hawk because this is something that is screams "opportunity." Whatever you do, don't simply buy oil because it looks cheap, what you really need to do is understand the story, wait until the right signs come together before taking position.

Oil Prices will continue to decline

So long a supply runs higher than demand, oil prices will continue to fall. The biggest impacts of falling oil prices is reductions in revenue for all oil producers. Not all wells are the same. Country and region, each drilling site will have a different cost for every bbl of oil extracted. Every company will also be in different financial positions to handle the current falling prices.


Doing some cursory research, there are many oil and gas companies in the US with varying levels of debt and cash on hand. In addition to this many of them have hedged their future deliveries throughout the year. I am willing to venture that most of these companies will be able to continue running for the next several months until their hedged positions expire and then these companies will need to plan their next move.

Let's take a look at the recent futures curve for oil for WTI:


We see in this case for the Feb delivery hovering near $50, the market is pricing  expect that oil prices will recover to around $55 by next year and hit $70 3~4  years out. Supposing that you took delivery of 1 barrel of oil now, bought the future to deliver the oil a year later, you'd be looking to make 10% on your investment (excluding storage costs). Adding in costs for the storage and transportation perhaps this profit would be a little lower at about 8%. Comparing this against the current 1 year US treasury rate of 0.25%, this is a no brainer manoeuvre.

What we'll be seeing is that oil storage companies will be turning a sizeable profit by simply buying excess capacity and storing them for the time being to sell the oil later on at a profit.

A typical play during these times would be to use takers as floating storage facilities for the oil. A typical supermax 200k barrels of oil and would run approximately $9k/day in costs. Calculation in this case would yield a net loss, so don't start banking on seeing shipping companies coming into play just yet.

The downward trend will continue until there is blood

One thing I am fairly certain of at this time is that there will be no change change in this trend until there is a change in supply. Growing demand will lag after plentiful supply and even if this current current situation lasts for 1~2 years, I highly doubt that demand will pick up fast enough to take in the additional oil supply just yet.

What we know right now is that all new exploratory projects and new drilling activities are being stopped for the time being to allow all companies to extend their financial runway. The game at this point is to be the last company standing as less capitalized companies start to go belly up, this is when we'll finally start seeing reductions in oil supply. 

Currently all the news headlines are currently pointing toward reductions in exploratory services and new drilling. Excess staff that isn't required to simply pump oil out of current running wells will likely be jettisoned to give the current companies as much runway as possible to keep going to survive.

Of course, larger geopolitical events could also cause large movements in the market. One as such is the default of Russia. A cursory look into this from an article from Bloomberg indicating that their reserves have shrunk by 20% in just the last year. The burn rate could increase with increasing devaluation of the rouble, but even in this case, I would assume that they have enough funds for the next 2~3 years before going to default. Though this will not likely spell collapse of Russia, they will have had a critical blow dealt to them, though not enough to cause collapse and chaos (some conspiracy circles would say that the US and Saudi Arabia are working together to make this happen to keep Russian influence minimal in the Mediterranean after the take over of Chimera). 

How could this situation be played?

There are 2 ways that I can see with this current oil situation.

1. Look for the bottom:

As the saying goes, down catch as knife as it's falling. In this case, let it hit bottom when you have seen the right signs of it hitting the bottom. Meaning that we see production decrease with steady demand. In sure time, we'll see an increase in price. Most likely there will be some companies that have gone bankrupt. The companies that are still left standing will be in a great position to capture market share and take advantage of increasing prices. I'd say invest in them for the long term. You could also buy oil ETF to track the price of oil as it  goes up.

2. Go for the futures spread trade

Maybe we won't know where the long term price of oil will be. There are people now talking about the "new normal" of oil prices being around $60-$70 in the future. Perhaps that prices will be lower. Once thing that we can be certain of is that the oil market will stabilize and the spread between the prices now and later will shrink as what it looks like in the following graph:


What you could do in this case to anticipate the shrinking of the spread between now and the futures say a year later would be to buy the most current futures contract and sell the a contract 10 months to a year out and wait for convergence of the yield curve.

Futures 10 months out from now will have slightly poor bid-ask spreads but assuming that you are not trading these heavily, you could simply just hold these while rolling the most recent contracts to capitalize on the shrinking calendar spread.

At the time of this writing, the Feb 2015 contracts are trading for 49.20 and the Dec 2015 contracts are trading at 56.38. Assuming that the market will eventually stabilize, either the Dec futures will bet cheaper or the more recent futures will increase in price (or a combination of the 2).

The delta here is about $6k per contract and taking in to account additional slippage, taking the March 2015 forward contract there is a $0.5 gap between the bid of the Feb contract vs the ask of the March contract. Let's take the assumption that the curve does flatten such that the gap between the month to month spread shrinks linearly to $0.25 after 10 months. You'll lose in total of $3.375 in monthly spread costs you might be able to get away with $2.6k in profits.

Given different scenarios for spreads after 10 months:
  • $0.5 monthly spread down to $0.25 gives $2.625k in profits
  • $0.5 monthly spread down to $0.15 gives $3.05k in profits
Good luck.