Sunday, April 15, 2018

The Gold Model

I have now managed to reconstruct something similar to the old model I tried to trade a decade ago. It is a mixture of trend following when the markets are trending and predicting the direction to trade in when markets are more choppy. It follows a clear set of rules with no real discretion. Using those rules since January 1st this year would have returned 51% with a Sharpe ratio of 0.58. The model wins 71% of the time with an average daily win of 1.15%. The maximum loss is 1% as set by the stop. When I optimize a portfolio of the various methods I have come up with to maximize the Sharpe ratio of the portfolio the solution says to put 90% in this strategy and to actually short one of the other strategies! At the moment the model is long, which is good, as I have a long calls position still on from Friday. I think I will rename the new version of the old model the "gold model" :)

By the way, if you can borrow, maximizing the Sharpe ratio makes much more sense than maximizing return. You then get the smoothest time path of returns, which you can lever up if you want taking into account the size of likely drawdowns.

Saturday, April 14, 2018

Friday Update

I finally exited Leucadia National after they announced they are converting into an investment bank and will sell some of their private equity assets and change their name to Jefferies. It has been one of my worst investments losing just under USD 4k (there have been some far worse ones though...). I got in too late just as the financial crisis was getting underway and the company never recovered. Previously, it had an excellent track record and was referred to as a mini Berkshire Hathaway. I bought some more shares in 3i instead, which has been a good investment.

I have been doing more work on improving my trading model and more on trying to trade it. The options I am willing to buy - i.e. the maximum loss is bearable - have too much time decay and so the market can go up and I end up not making money. I about broke even over the week due to this and various stupid things I continued to do. I stayed up last night trading the market, though that is not something I should do. The market was beginning to go up after initially falling and I decided for some reason that shorting put options on expiration day would be a good idea. I shorted a 2650 Friday 13th S&P put and bought a 2625 Friday 13th S&P put. This exposed me to a maximum USD 1300 loss. Of course, the market immediately turned around and started going down. As it reached 2650 I sold short a futures contract as a delta hedge. Then the market bounced and hit the stop I had subsequently put in place at 2650. And then it went back down again... In the end, I actually ended up about USD 20 on the trade :) But it was quite nerve-wracking. I don't know how ERN sells lots of put options all the time without trying to determine market direction or "buy reinsurance" to make it an options spread.

Next week I am thinking to experiment with futures contracts with options collars to limit both the upside and downside. Using options you can have a much tighter effective stop and not worry about the market coming down, hitting the stop, and then going up again. The downside is that the upside has to be limited or the cost of the put option (or call if short the futures) is too much. So, you sell a call (or a put) to defray the cost. I think for a reasonable net cost it's possible to have a little more upside than downside, though as the model does have an edge it's not strictly necessary to have more potential upside than downside. I am thinking of buying a put 10 points (E-Mini S&P) below the entry price into the futures contract and selling a call 20 points above. The maximum downside is then something like 13 points (USD 650) and the maximum upside 17 points (USD 850). Another downside is that if the market is flat, you lose 3 points (USD 150).

The only issue is if both options are out of the money at expiration I will have a naked futures position without a stop at the end of that day's session. I guess if the market hasn't moved in a decisive manner up to that point then maybe it won't suddenly, but I need to be up in time to put on a new options position.

The model is neutral for Monday. The different predictors point in different directions.

Another idea I had is that it is easy to adjust the ASX200 index for franking credits. S&P have a franking credit adjusted index but it only goes back to 2011 and has some weird features, like only reinvesting the dividends once a year. If you get the monthly values of the total return or accumulation index - which includes dividends but not franking credits and the price index which is without dividends, you can calculate the monthly dividend yield. The dividend yield can then be grossed up for franking - this will exaggerate franking a bit as some companies pay unfranked dividends. The return including franking credits matches the MSCI World Index gross total return since the financial crisis in 2009 very well:


My performance is also given pre-tax includes estimated franking credits. A major reason why I am lagging the index is presumably management fees.... You can see though that my returns about match the ASX in the last five years, despite the drag of management fees. This is by investing more in funds that do generate alpha. The black line is a simulation for the "target portfolio".

Wednesday, April 11, 2018

Exited First Model Based Trade

The futures market started crashing when the People's Daily said that Xi Jinping's comments on openness to trade did not apply to the US. I exited my trade when the S&P 500 was down 1% on the day, based on a 1% stop loss. I made USD 245 on the trade, which was roughly equivalent to 1/3 of an S&P 500 futures contract. So it's about 1/2% on the underlying stock. I was up about USD 650 at the close of Tuesday's regular market.

I am continuing to fine tune my model strategy. It's different to how I traded a decade ago but following similar principles. When I deem the market is overbought I remain long (with a 1% stop) unless one model says that we will exit the overbought situation. Another indicator shows when we enter overbought. The mirror image applies to oversold - remain short with a stop. When neither overbought or oversold, I use the average of 4 predictors. This combination, if executed perfectly would have returned 37% since January 1st. It would have returned far less in the generally bullish market in 2017.

Despite this, I have some further research ideas to test out to see if they can provide a more theoretically satisfying signal. One of the 4 signals in the composite makes no sense whatsoever, but it has done really well since the beginning of this year.

The inverted head and shoulders formation still remains in play unless the market falls below the right hand shoulder:

Notice the higher volume on the left shoulder than the right, which is a classic sign of a head and shoulders formation. The alignment of the recent highs perfectly along the white line is also a classic sign. P.S. 12 April Long again for 0.75 cents slippage.

Sunday, April 08, 2018

More Trading Model Research

Even with all my old notes it is hard to reconstruct the trading rules I was using a decade ago. I have put that on the "back burner" while developing new approaches. I realised that I can actually make predictions on the level of the index. My model predicts the change in an indicator. I can solve for the index level that will generate that level given some assumptions. If there is little change in the index it's best not to trade. If a big move is predicted it is worth trading. The tests I've done so far are good, though it needs systematic backtesting. Using this approach the NASDAQ 100 index is projected to rise to 6555 on Monday up from 6433. That is a big move up. This will set up the price action of the last two weeks to be a "head and shoulders bottom". Based on that there should be a new uptrend over the next couple of weeks or so. Of course, my model can only project one day at a time. As this hasn't been extensively backtested yet, I think I will sell a put spread that limits my potential losses to less than a 1% stop loss on a futures contract would.

P.S. 9 April
After looking at my options (pun intended) I decided instead to buy a call option. Specifically a June 2018, ES-Mini 2800 call. This is an option on the ES-Mini futures contract. This option has currently a delta of about 0.16 - for a 1 point move in the futures contract it moves about 0.16 points. So, it is equivalent to going long USD 22k of stock instead of USD 130k. Also, the most I can lose is the USD 500 that the contract cost. The likely loss if I am wrong is more like half of that or about 1% of the implicit position. So, this is like a built in stop loss.* Because the option expires in a couple of months, the time decay shouldn't be too bad, but I will need to investigate further whether longer-dated options make more sense.

I just found it impossible to find a risk-return trade off that I liked with selling put spreads. The net amount of premium I would have received was just too great relative to the potential loss.

* This is particularly attractive for holding a position over the weekend when a stop can't be activated. The CME Globex market trades 24/5 not 24/7. Not that I'm planning to hold this position that long, but for future reference.