December 19, 2018

What to do when you find the Holy Grail

As I have mentioned in several interviews, I am always looking for new strategies. One area that fascinates me is stock options. Because it is difficult to get good data and to do backtests, I believe that there are good edges here to be found. A few weeks ago, I found myself with lots of time and having read presentations on options, I went into a testing frenzy.

After lots of work, I found a strategy that greatly exceeded my expectations. It seemed to be the Holy Grail. I ran the strategy by my trading buddy, Steven, and he thought it was great too. We were so excited!

Option backtests are very complicated. Besides having to deal with the usual issues, one must deal with expirations, additional data like the Greeks, lack of the option trading, and many more issues.

The 7 steps to do when you find the Holy Grail.


Source: https://www.flickr.com/photos/spiritual_marketplace/2207966935

Step 1: Assume you did not find it

In the excitement of finding a strategy that makes lots of money, one forgets there is always a possibility that you did not find it. The better the results the more likely there is a problem.

Step 2: See Step 1

I really must emphasis this point. The more excited you get the more you make up stories to justify why your strategy is working. We started to fall down this path.

Step 3: Check the code for future leak

The first obvious step is to check the code for future leak. This means are you looking into the future to get in or out of a position. For example, you check to see if today is a down day, if so, you get out of the open. Yes, I have done this before.

After checking and checking, I could not find any future leaks. I even made the code more pessimistic, and entered longs on the ask and exited on the bid. For shorts, I entered on the bid and exited on the ask. The strategy still held up great. My excitement continued to grow.

Step 4: Check outsized winners

Are a few trades giving you all your winnings? There were some big winners but nothing that outsized that if they did not occur the strategy would be a losing one.

Outsized winners are also good for checking for future leak. None could be found here.

Step 5: Check random trades

This is similar to step 4, but now I just check some random trades. Again, everything looked fine.

Step 6: Paper trade it

Steve got so excited that he actually placed a real trade to see if he could understand it better. Of course, that trade turned out to be a big winner. I did not have that much trust yet. I kept reminding him and myself that there probably was a problem. Even though I really hoped not. Instead I placed a trade with InteractiveBrokers paper trading count. Often going through a trade, one will find the problem of future leak or something else. Opening the order, I found no issues

Step 7: Get external verification

This is the best way. Find someone else to code up the strategy and see if they get the same results. I have a research friend who will often verify results for me for free. But given the difficulty of testing options strategies I was ready to pay him.

Holy Grail Lost

Steve and I were going through the trades yet again. Then we found it. We found an exit that did not make sense. The data seemed wrong. Oh, oh. How often did this happen?

Upon investigation, it turned out there was a problem. It was two-fold. One, I had exported the data out of the options database incorrectly. Two, my code was dealing with data holes incorrectly. Because of these two issues, the strategy went from making great money to barely making money.

As much as I was expecting this, it always sucks when it happens. But better to find it now, then in real trading.

 

I drank from the wrong cup. I chose… poorly.

https://www.youtube.com/watch?v=qIitjokEJwg

Good quant trading,

Visited 40 times, 1 visit(s) today

Click Here to Leave a Comment Below

Ben - December 20, 2018 Reply

Cesar,

The first thing I thought of when I saw your email in my inbox was, “there is no holy grail.” Of course, you knew that.

With that said, I do trade a basic RSI (4) system using options and I have had some success. Options can add leverage and you can achieve outsized returns on a good system.

However, they can also add significant risk as well depending on how you trade them. In addition, they add complexity because you are dealing with Time Decay and Volatility and they can dramatically impact your profits and loss. As you said, that complexity also makes it difficult to backtest.

So, you really need to know what you are doing and, most importantly, they need to fit your trading style and the option strategy you use to implement mean reversion (or trend following) needs to fit your trading psychology.

If you can figure all of that out, I think options can be a really good vehicle for a mean reversion strategy.

Ben

    Cesar Alvarez - December 20, 2018 Reply

    Yeah, I wish there was one. But that does not stop me from trying to find it. Or something close.

Ryan watson - December 20, 2018 Reply

Good article! I have had similar instances where I find a strategy that I believe was created ‘correctly’ and saw fantastic results. The initial rush of adrenaline is great but I have found – after careful review – that the strategies are duds. Almost always due to some bone head error or omission.
Outlining the sanity checks in your post is a reality check for those that think they have found ‘the holy grail’ system.

Ryan

    Cesar Alvarez - December 21, 2018 Reply

    It is so hard to not get sucked in to believing that this time you found it.

Michael - December 21, 2018 Reply

Hi Cesar, what data source would you recommend for options? Thanks.

Akshay - December 21, 2018 Reply

Hi
What platform did you use to backtest options strategy ?

    Cesar Alvarez - December 21, 2018 Reply

    I did all my testing in AmiBroker.

Leave a Reply: