Using Quantifiable Edges to Your Advantage – Part 1 – Understanding the Study Layout

This post is the beginning in a series which will provide readers some ideas on how they can take some of the edges they see here (and elsewhere) and use them to their advantage in their own trading.

Before getting into a theoretical discussion it’s important that I make sure everyone understands what it is I’m presenting when I show these studies in the blog and the Subscriber Letter. Over time I have pretty much standardized the statistics that I show in my tables. I have tried to strike a balance between giving enough information to make the table useful and giving too much information which could make it messy and confusing. Below is a sample study (with real results but a bogus description). I’ll use this as an example to refer to.

The top box of the study always lays out the conditions. Everything that was taken into account is described there. One thing to note is that I always run the studies on $100k/trade. This is because most of them look at the S&P 500. Since it trades at about 1,200 there will always be some leftover when buying into a portfolio (you can’t buy a half a share in Tradestation). The $100k makes the rounding error small enough so that it doesn’t have much of an affect. $10,000 would have too large of a rounding error. $1,000,000 would be better but then the numbers get so large it makes it more difficult to read.

With an even $100k I find the results easy to interpret. $1000 = 1% in the results columns. So in the above example the “Average Trade” shows a gain of $733 after 3 days. This is almost 0.75%.

Now let’s briefly review each column in the results table.

“X Days” – Most tests I run out over a number of days to see how the market has performed after the test conditions were in place. “X Days” just shows the length of time from the entry. The entry is normally assumed to take place at the close. The exits are also assumed to be at the close. The number of days refers to trading days – not calendar days. Note this column reads from the bottom up, which means all columns do. No reason for that. It’s just how I started doing it a long time ago.

“Net Profit” – This is the net gain or loss for the entire sample of instances included in the study. One thing to note is that I always “Buy” the setup. This is not because I am only looking for long edges. It is because it makes the table easier to read. A quick glance can tell me if the edge is bullish or bearish. Lots of positive, green numbers is bullish. Lots of negative, red numbers is bearish. A long time ago I would sometimes set the entry condition to “short” at the close. Then I could see profits from shorting. Doing this required me to read the entry conditions carefully and would occasionally lead to some confusion when I didn’t. So for purposes of easily reading the study tables, everything assumes a long position.

“Total Trades” – This is the total number of instances that triggered based on the study conditions. As in the case above, this number will sometimes be larger for Day 1 and then you’ll see a declining number of instances as you look further out. If you’re wondering why this happens, check out the June 18, 2010 blog post.

“Winning Trades” – The total number of trades that were showing a gain “X Days” later.

“Losing Trades” – The total number of trades showing a loss “X Days” later. The wining plus the losing trades typically add up to the total trades. In those rare instances when it doesn’t it means a trade was breakeven on that day.

“% Profitable” – This column simply shows the winners / total trades. Sometimes a 50% profitable situation can still show a strong edge. That would mean gains outsized losses by a large degree (or vice-versa). % profitable is important from a trading standpoint though. If a setup is 90% profitable it is generally less likely to put you through an extended drawdown as a setup that is 55% profitable with the same size average trade.

“Avg Winning Trade” – This looks at all the “winning trades” and divides them by the gross profits on those trades. (Gross gain and gross loss columns are not shown.) So in the table above, the “Avg Winning Trade” was up $692 after day 1. This means that of the 14 instances that finished higher the next day, the average gained just under 0.7%.

“Avg Losing Trade” – Just like “Avg Winning Trade”, but it is looking just at the losers. In this case after day 1, the 7 losers dropped about 0.9% on average.

“Win/Loss Ratio” – This takes the value from the “Avg Winning Trade” column and divides by the value from the “Avg Losing Trade” column. It can help you determine whether the reaction was typically more explosive on moves up or down.

“Profit Factor” – This is the stat I am asked about the most. It is a stat often cited by system traders. Profit Factor = Gross Gains / Gross Losses. Profit factors above 1 occur when there are positive net results and below 1 occurs when there are negative net results from a study. When thinking about the importance of profit factor, it is easiest to consider how 2 systems may compare. Consider 2 systems made a hypothetical $10,000 each over a specified time period. System 1 had $15,000 in gains and $5,000 in losses. Its profit factor was 3. (15k/5k = 3). System 2 also made $10,000 but it was on $100,000 in gains and $90,000 in losses. Its profit factor was 1.11 (100/90). Most people would find system 1 more appealing as it seemed to make the $10,000 with less effort and risk.

“Avg Trade” – This is simply the net gains divided by the total trades. Under most circumstances, I’ll use the information in this column to help generate estimates.

Last but not least I will often place a statement with additional information in a box below the results. This is typically information that can’t be seen in the table. A common bit of information I put here is how often the market might close up (or down) from the entry price at some point in the next few days.

In the next installment of this series I’ll give a brief discussion of attributes that would make a study compelling to me and entice me to incorporate it in formulating my market bias.

A Very Powerful QQQQ Pattern

When a short-term decline that is already a bit overdone experiences a downside acceleration it will often mean an upside reversal is ready to occur.  QQQQ’s current pattern is showing a potentially powerful example.

These very simple requirements have led to some very strong results, both short and intermediate-term.  Four weeks out the average trade has produced a gain in the QQQQ of over 10%.  Even if this apparent upside edge does play out, I don’t expect to see gains this strong over the next month.  Often the outsized gains were partially due to the volatile environment that was present when the study triggered.  Many of these occurred during the wild 2000 – 2002 bear market in the Nasdaq.  The current environment is carrying low volatility, so my expectations are dampened. 

This downside acceleration concept is one I’ve found useful before.  It is included in a few of the systems available with a Quantifiable Edges Gold Subscription.  More details on the above study (and others) are available in last night’s Subscriber Letter.  Click here for a free trial.

Why The Equity Curve Is Importnat In Evaluating Studies

While I don’t always show it I do always look at the equity curve when evaluating studies to include in my analysis.  Last night while conducting my research I came across a great example of why this is important.

Inside days have generally suggested a bearish edge when the market is below the 200ma and no edge much better than upside drift when above the 200ma. I found it unusual that the inside day came with an unfilled gap down so I tested the possible effects under these circumstances.

At first glance the numbers seemed to suggest a downside edge. A closer look showed the numbers to be misleading. Here are the results in table format.

Base on this the next 1-3 days would seem to have a bearish inclination. But here is a picture of the equity curve.

As you can see it has been a long time since this setup has produced compelling odds.   Researchers should always take a look at the equity curve when considering whether to incorporate results into their analysis.
Another blogger who often makes this point is Michael Stokes of MarketSci.  He did it again in his recent Thanksgiving returns post yesterday.

Back to Back Outside Days in QQQQ Revisited

Yesterday afternoon the Quantifinder identified an interesting study that I last wrote about in the 3/23/10 blog.  It looked at back to back outside days in QQQQ.  I’ve updated the study below.

I also sliced this a few different ways (above/below 200ma, up/down close, etc.) and found little difference in the results.  Despite the low number of instances I find this a compelling setup.  You’ll also note that on December 7, 2009 I performed the same study on SPY and found compelling results there as well.

Overbought in an Uptrend

Most swing traders understand that the market has a tendency to oscillate. In other words, strongly oversold conditions will often lead to a bounce and strongly overbought conditions will often lead to a pullback. The trick in trading a swing time frame is understanding when the likelihood to reverse is strong and when it isn’t.

Trying to sell short when an uptrend gets overbought can be a dangerous endeavor. Often there will be no downside edge when trying to short into an overbought condition in an uptrend. When the market is strongly overbought due to a sharp acceleration in the trend as occurred late last week, it may even suggest an upside edge. Below is a study from last night’s subscriber letter that demonstrates this.

We see here a mild upside edge.

Actually the upside stretch is even more extreme that I show in this study. There were some momentum studies in last night’s letter suggesting an even greater bullish edge. There are also a few active studies that suggest a mild pullback could be in order. In any case, the point is that though the market is short-term overbought, this is by no means an ideal short setup. And in general odds seem to favor a continuation rather than a strong, immediate drop.

The Importance of Breadth & Volume Confirming A Move To New Highs

While we can learn a lot from price action, it really only gives a small piece of what the market is doing.  There are many other forces that play a role in determining the likelihood of future price movement.  Breadth and volume are 2 that I mention every night in the Subscriber Letter.

Moves to new highs are often followed by brief retracements.  This has especially been true since around the year 2000.  (This is when chop became favored over day to day trending activity as discussed here.)  In last night’s letter I showed a study that suggested strong breadth and volume in conjunction with a new high has favored further short-term upside.  That study is below.

Instances are a bit low but results are fairly compelling.  I did run the results back further last night and found the edge has been present as far back as the 1970s.  It became stronger after 1988. 

Now let’s look at what has happened since 2000 when these new highs were not accompanied by strong breadth and volume.

The difference is striking.  This is just another reminder that price action alone does not tell the whole story.

Fed Days With The Market At An Intermediate-Term High

Fed Days have generally exhibited an upside bias for about 30 years.  Many times this has been thanks to the Fed giving a confidence boost to a struggling market.  But what of those times where the market is already at an intermediate-term high.  With the SPX closing at a new rally high yesterday this is the situation the market is now in.  Below is a study that take a look.

What I see here is that there has been no tendency for the market to advance under these circumstances.  There could even be a slight downside edge, but the numbers aren’t compelling enough for me to bank on that.  I’d simply view it as neutral. 

Fed Day Tomorrow

Just a quick reminder that tomorrow is a Fed Day.  Over the last few years I’ve written an awful lot about Fed Days and market behavior on and around them.  In general, Fed Days have been bullish, though there are certain nuances that substantially affect the edges.  For those that may want to review some of the edges I have identified, you can check out the Fed Day label on the right hand side of the blog, or use the link below:

https://quantifiableedges.blogspot.com/search/label/Fed%20Study

Of course the most complete collection of my Fed Day studies is contained in the Quantifiable Edges Guide to Fed Days.  For more information on the book/ebook, check out the link below:

https://quantifiableedges.com/fedguide

1st Day of November Tendency

I’ve discussed before how the 1st day of the month tends to have a bullish bias.  This has been the case since the late 80s.  (Perhaps due to the rise in popularity of the 401k.)  In July 2009 I looked back to 1987 and broke down the 1st day returns by month

For whatever reason, the 1st trading day of November has shown a positive bias for a bit longer than most months.  Below are the results looking back to 1978.

A Rare Consolidation

On Tuesday I discussed the 3/10 Offset HV indicator.  I used it to measure when a market has become so coiled that is is likely to have a sharp move.  We have a very unusual situation right now in that the 3/10 Offset HV has closed at a very low level for 4 days in a row.  I decided to run a test last night to look at other times SPX’s 3/10 Offset HV closed below 0.3 for 4 days in a row. I also filtered using the short and long-term trend. Results are below.

These results would seem to suggest an upside edge. But I also looked deeper. Below is a listing of all 20 instances going back to 1960.

What I find most notable are the dates of the occurrences. As you can see most of the instances took place in the 60s and 70s. Also, this is the 1st instance in over 14 years. Personally, I’m not terribly comfortable using a study whose results are primarily achieved during the 60s and 70s and with no instances since ’96. Therefore I decided not to include it when formulating my outlook.

Many more studies lead to dead ends than lead to quantifiable edges.  When deciding what to include in your analysis, it is important to be intellectually honest with yourself.  Traders should look to trade aggressively when  edges strongly suggest a bias.  It is just as important to remain patient and conserve capital when evidence is mixed or lacking.

VIX and SPX Both Close Higher for the 2nd Day in a Row

The SPX and the VIX typically move in opposite directions. It is somewhat unusual to see them both move higher on the same day. It is especially unusual to see this happen 2 days in a row as we saw on Monday and Tuesday. Below is a study that looks SPX performance following such occurrences. It only considers those instances that occurred when the SPX was trading above its 200ma.

Instances are a bit low but the stats seem to suggest a possible downside edge over the next 1-3 days.

Volatility Contraction & A Study In Memory of Bruce Hanna

Notable about current action is that the 3/10 Offset HV Indicator has fallen into “extremely low” territory. I first introduced this indicator in the July 13, 2009 blog. It looks at the historical volatility over the last 3 days versus the historical volatility over the previous 10.  Low readings in this indicator occur when there has been a sharp contraction in volatility. In that blog post I showed that these sharp contractions are typically followed by volatility expansions.

About a year ago I wrote a detailed study that examined using the 3/10 Offset HV Indicator as a filter for daytrading Opening Range Breakouts. The study is 5 and a half pages in length. I’ve never offered it through the blog before. It is only available in the members section of the Quantifiable Edges site.

I took the last week off from blogging after my father passed away. He got dementia at a young age and it took him away from us much too soon. In his memory a fund has been set up with the Alzheimer’s Association.

If you use the link below to make a donation to the Alzheimer’s Association I will happily forward you a copy of the Quantifiable Edges Opening Range Breakout (ORB) Study. The donation may be in any amount. I would ask that if you have found the blog helpful in your trading over the years that you consider a generous (tax-deductable) donation.

https://act.alz.org/site/TR?pxfid=27370&pg=fund&fr_id=1060

I will receive notification from the Alzheimer’s Association when a donation has been made, along with the person’s email. With this information I will forward a link to the Quantifiable Edges Opening Range Breakouts Study along asap. If you do not get it within a few hours, please email me at ORBstudy @ quantifiableedges. Com (no spaces) and let me know.  I apologize for not being able to automate the entire process.

About the Alzheimer’s Association (from their website):

The Alzheimer’s Association is the leading, global voluntary health organization in Alzheimer care and support, and the largest private, nonprofit funder of Alzheimer research.

More information may be found directly from their home page.

https://www.alz.org/index.asp

Thanks,
Rob

Modest Gaps Higher From High Levels

I’ve shown several times before that when the market is already at a high level and it gaps up large in the mornining there is a quantifiable downside edge for the rest of the day.  The large gap up incites profit taking.  See the link below for an example:

https://quantifiableedges.blogspot.com/2009/08/large-gaps-up-from-1-month-high.html

But what of times like now when the makret is at a new high, but the gap up is only modest?  Below is one way to look at it.

It appears when the gap up is of a moderate size a downside edge no longer exists.  And while a large gap up would have had me excited about shorting this morning, this study suggests no substantial edge at all. 

Low VIX:VXV Ratio At A 50-day High

I’ve found in the past that a very low VIX:VXV ratio can often be a bearish indication for the market.  Monday we saw the ration drop sharply and the SPX close at a 50-day high.  Below is a study that examines a low VIX:VXV ratio and market at a new high.

Implications appear to be mildly bearish, but are mostly exhausted after just 2 days.