Saturday, December 31, 2005

S&P Emini Premium to Cash



Recently on my site, I mentioned the S&P emini premium to cash as a valuable market indicator reflecting program trading activity. Below is a chart from the 12/28/05 market that tracks the emini premium relative to separate buy program and sell program levels through the day. When the line is rising, it means that there is buying pressure in the ES as gauged by pricing relative to the buy level criteria. A falling line means the reverse. As we can see from the chart above, divergences between the Premium Line (red) and price (blue) are of interest to the short-term trader. I'll post further details on the Weblog.

Friday, December 30, 2005

Selloff In the Last Hour: What Next?

Once you develop a large, deep, and clean intraday database, historical analyses can be conducted on intraday patterns in real time. This allows quantitative traders to track shifting odds through the trading day. For example, you can look at what typically happens after the market opens up, but then retraces this rise in the first 15 minutes of trading. Or you could look at a day like Friday and ask, "What typically happens after the market sells off in the last hour and makes a new low for the day?"

It turns out that this has occurred 14 times in the past 250 trading sessions (which goes back to late December, 2004). After this selloff, the market (ES futures) has opened up the next day 6 times, opened down 6 times, and opened unchanged twice for an average gain of .07%. No real edge there.

By the end of the first hour of the next day of trading, however, the market has been up 11 times, down twice, and unchanged once for an average gain of .17%. This compares favorably to the average gain of .07% (141 up, 106 down, 3 unchanged) for the first hour of trade across the entire sample.

This bullish bias in the first hour of trade after a selloff dissipates through the remainder of the trading day (i.e., there is no edge holding on beyond that first hour).

In short, late selloffs have tended to be at least partially reversed during the first hour of trade the next day.

Once you start thinking of the morning, midday, and afternoon market hours as separate trading sessions, lots of intraday analyses become possible. A few are even meaningful... :-)

Thursday, December 29, 2005

Narrow Trading Range Periods

My upcoming Trading Markets article will examine narrow trading ranges over a 20-day period, going back to 1990. I was inspired to take this look after receiving a number of emails from readers suggesting that we were headed for a major (upside) breakout move due to the extended narrow range that we've been in.

So my question was: Do narrow, rangebound markets lead to future price volatility and a directional edge in prices?

The gist of my findings was that low volatility 20-day periods in the S&P 500 Index tend to be followed by below-average volatility 20-day periods and high volatility periods tend to be followed by above-average volatility. Interestingly, the recent 20-day period is one of the lowest volatility periods we've seen since the early-to-mid 1990's--in fact, it's in the lowest 1% of all 20-day periods in my sample.

Compared to high volatility 20-day periods, low volatility ones were just as likely to be up vs. down over the next 20 days, but the average sizes of gains are greater following high volatility periods.

In short, historical analysis does not support the idea that narrow, low volatility markets lead to high volatility breakouts or that there is a distinct price direction edge associated with extended low volatility. My website does mention reasons for concern regarding weakness in the current intermediate-term picture, but this is a consideration specific to this market. History is not on the side of those who expect large, extended directional moves to emerge from low volatility markets.

Wednesday, December 28, 2005

Inside Day After A Fall

Wednesday traded much more like a holiday session than Tuesday, remaining in a narrow range. After Tuesday's decline, Wednesday gave us an inside day. So, I decided to take a look at what happens after inside days that follow weakness vs. strength.

Since January, 2003 (N = 752), we've had 100 inside days. In general, returns following inside days are nothing to write home about. Two days later, the market (SPY) averages no change (47 up, 53 down), compared with a gain of .09% (402 up, 350 down) for the sample overall.

When the inside day follows strength (an up day; N = 50), the next two days in SPY average a loss of -.11% (23 up, 27 down). When the inside day follows weakness (a down day; N = 50), the next two days in SPY average a gain of .12% (24 up, 26 down). Interestingly, when the inside day follows a very weak session (down by more than 1%; N = 17), such as the present situation, the next two days average a gain of .40% (9 up, 8 down).

In general, inside days following strength tend to be weaker than inside days following weakness, but there are no decisive edges in the data. It's a bit like poker: knowing when you have a hand that gives you no real odds is not exciting, but--to a pro--it's information. In time you'll draw the nuts; mucking your hand when you have nothing helps you keep your winnings. Today we've drawn 4, 8 unsuited.

Tuesday, December 27, 2005

Up Open, Down Day

Tuesday's market (SPY) opened up, but then closed down over 1% on the day. Since January, 2003 (N = 750), we've had 80 days in which SPY has fallen by 1% or more. The next day, the market is up on average by .24% (50 up, 30 down), which is stronger than the average gain of .05% (415 up, 335 down).

Interestingly, however, when the down day in SPY started the day by opening to the upside (N = 23), the average change the next day is -.02% (13 up, 10 down). When the down day opened down and stayed weak (N = 57), the average next day change is .35% (37 up, 20 down). It thus appears that days that start strong (such as Tuesday), but become weak are more likely to show followthrough weakness the next day that markets that are weak throughout the day. One way of looking at this is that markets opening up are trapping the buyers, while markets that open down trap the sellers the following day.

Monday, December 26, 2005

Dow Industrials and Utilities

While traders marvel over the performance of GOOG and AAPL, the Dow Utilities have quietly doubled in value over the past three years--not bad for a collection of stocks once thought for widows and orphans. Accordingly, I thought it would be interesting to see how the Dow Utilities fared as a predictor of the Industrials.

Over the past seven trading sessions, the Industrials have been essentially unchanged, but the Utilities have declined by about 1.2%. Going back to January, 2003 (N = 745), I decided to look at flat periods when the Industrials were up or down within .30% over a seven-day period (N = 93). Seven days later, the Industrials averaged a loss of -.30% (44 up, 49 down), worse than the average seven-day change for the entire period (.23%; 412 up, 333 down).

A median split based upon the Utilities, however, reveals a pattern. When the Utilities have been strong while the Industrials have been flat over a seven-day period(N = 47), the Industrials have lost an average -.60% (20 up, 27 down) over the next seven sessions. When the Utilities have been weak during flat seven-day periods in the Industrials, the next seven days in the Industrials have averaged .02% (24 up, 22 down).

In short, when the Industrials have showed relative strength compared to the Utilities on a seven-day basis (as they have recently), they have performed better over the next seven days than if they show relative weakness. While there is no upside edge in the pattern at present, neither is there a significant downside one.

Sunday, December 25, 2005

The Coming Holiday Week

My upcoming Trading Markets article will look at expected market action during the holiday week between Christmas and New Years. Not surprisingly, since 1990 over 80% of all days during these holiday weeks trade below their 200 day moving averages for both volume and volatility (N = 63). There is an upward bias to price change during the holiday weeks, with 39 trading days up and 24 down and an average price change of .14%. This compares favorably with the .04% average daily gain for the 1990-2004 period overall. My work, however, suggests that the bulk of these bullish days occur during high volatility markets. There is no seasonal edge during low volatility times, such as the current one.

Saturday, December 24, 2005

TRIN and the Flat Eight-Day Period

The S&P 500 cash index has been relatively flat over the past eight trading sessions, but we've seen more volume in advancing issues than declining ones, leaving us with an eight-day TRIN below 1.0. I decided to look at what occurs eight days following flat eight-day periods.

Overall, there's no edge following a flat eight days in the market. Since January, 2003 (N = 744), I found 55 instances of eight-day periods in SPX where the market was up or down within .20%. Eight days later, the average price change was .21% (31 up, 24 down). This compares to an average eight-day change of .37% (440 up, 305 down) for the sample overall.

A median split of the flat eight day periods based on the eight-day TRIN shows an interesting pattern. When the TRIN was high (more volume in declining issues), the average price change eight days out was .77% (17 up, 11 down; N = 28). When TRIN was low (more volume in advancing issues, such as we've had recently), the average price change eight days later was -.36% (14 up, 13 down).

This appears to be another instance in which a technical indicator shows particular value during periods of neutral price change in the markets. When there is strong market selling during a neutral eight-day period, the next eight days tend to be stronger than when there is strong buying in such a period. Once again, we see where buying over the last several days is not generating further upside expectations.

Friday, December 23, 2005

Four Consecutive Up Days - What Next?

We've had four consecutive up days in SPY, but that's not the most unique feature of recent action. Rather, of the 66 instances of four consecutive days that we've had since 2003 (N = 748), this most recent episode is the weakest of all in terms of percentage price change. On average, when we have four consecutive up days in SPY, the average price change is 2.61%. The past four days, we've seen a rise of only .84%.

In general, there is no edge over the next four days when we look at four consecutive up days in SPY. The average four-day change for the sample overall (N = 748) is .18% (424 up, 324 down). After four up days, the average four-day change is .13% (40 up, 26 down).

When we perform a median split on the sample of consecutive four-day rises, however, a pattern emerges. The strongest four-day periods in the sample (average price change = 3.5%; N = 33) average .32% over the next four days (22 up, 11 down). The weakest four-day periods in the sample (average price change = 1.72%; N = 33) average -.05% over the next four days (18 up, 15 down).

What we see, then, is a momentum effect: Four consecutive rises that produce a strong price gain show some upside continuation over the next four days. There is no such upside continuation when the four consecutive rises do not produce strong price change, such as has been the case over the last four days. This does not provide us an edge to the downside; rather, it suggests that there is no significant upside edge despite the short-term uptrend.

Thursday, December 22, 2005

What Happens After a Strong Inside Day?

What I like to do with modeling is look for what is distinctive or unusual about the day's trading and then see what tends to happen subsequently. On Thursday we traded higher, following the pattern noted on Wednesday. Even though SPY was up over half a percent, however, it was still an inside day. That led me to wonder what happens after inside days and especially after strong ones.

Since January, 2003 (N = 748), we've had 99 inside days in SPY. The average three-day change in SPY for the sample overall is .14% (436 up, 312 down). After an inside day, the average three-day gain is only .02% (53 up, 46 down).

When the inside day is up by half a percent or more, however (N = 21), the average three-day change is .32% (13 up, 8 down). The remaining inside days average a three-day loss of -.06% (40 up, 38 down).

I sliced and diced the data other ways, but the modest conclusion is that outcomes are more bullish following strong inside days than weak ones. There is certainly nothing in the data to support fading a strong inside day.

Wednesday, December 21, 2005

Up On the Day, Down From the Open

Note: Some people are trying to post spam to the comments section of the site, so I've gone to moderated mode where I have to approve comments before they're posted. Please excuse the delay that this entails. Rest assured that I welcome comments and will do my best to respond to all legitimate ones. Thanks.

Well, Wednesday was interesting in that it followed the recent posts on this blog. We did see strength after the flat day in a downtrend, and we did see weakness following an up open.

One other thing interesting about Wednesday: We were up for the day, but down from the open. Looking back to January, 2003 (N = 747), I found 60 days in SPY that were up days, but which closed below their opening prices. Two days later SPY averaged an impressive gain of .57% (43 up, 17 down). All other occasions averaged a two-day gain of .05% (356 up, 331 down). If you go back to earlier posts on breadth, you'll also see favorable forecasts arising from relatively flat days that had strong breadth (such as Wednesday).

An up day that finishes below its open sounds weak on the surface and might lead to expectations of weakness the next day. Such expectations have not panned out since 2003.

Tuesday, December 20, 2005

After a Flat Day: Context Matters

Tuesday was a flat day in the S&P 500. I looked at all days since January, 2003 (N = 746) and found 96 days where the market was neither up nor down more than .10% on the day. Two days following the flat day, SPY averaged a gain of .12% (56 up, 40 down). This compares with a two-day average gain of .09% for the sample overall. Clearly there is no meaningful edge associated with a flat day.

When, however, we look at the *context* in which the flat day occurs, a pattern emerges. Based on a median split of the data, I looked at how the market had behaved during the two days prior to the flat day. When the prior days were weaker (N = 48), the next two days in SPY averaged a gain of .32% (31 up, 17 down). When the two prior days were stronger (N = 48), the next two days in SPY averaged a loss of -.07% (25 up, 23 down).

In other words, a flat day after a decline (such as we had Tuesday) appears to have a more favorable two-day forecast than a flat day following a rise. The lesson here is that context matters: all short-term patterns are embedded in longer-term ones that may be important to the edge going forward.

QQQQ: What Happens After the Open

Psychologists tell us that we tend to place undue emphasis upon the most recent events when anticipating the future. When we see a market open the day strong, it is only natural to think, "This is a strong market," and anticipate future gains. But do strong openings predict strong day sessions?

I looked at the QQQQ (NASDAQ 100 ETF) from January, 2003 to the present (N = 749). The average price change from yesterday's close to today's open was .07%. The average price change from today's open to today's close was only .01%. Interestingly, this suggests that the majority of the bull market in the NASDAQ has occurred during the overnight hours, and that the day sessions have had little directional bias. The correlation between price change from close to open and open to close was -.10, suggesting that there is no tendency for strength or weakness at the open to persist during the day.

Indeed, when I conducted a median split, it was clear that market moves at the open--if anything--tend to be reversed. When the market opens strong (N = 375), the day session in QQQQ averages -.11% (180 up, 195 down). When the market opens weak (N = 374), the day session in QQQQ averages .13% (203 up, 171 down).

Moreover, when QQQQ opens strong, the day session in SPY averages -.07% (181 up, 194 down), but when QQQQ opens weak, the day session in SPY averages .11% (214 up, 160 down).

These are modest tendencies, but they highlight the danger in assuming momentum: that recent moves will necessarily persist.

Sunday, December 18, 2005

Technical Indicators: Valuable or Worthless?

What I continue to find in my data explorations is that many market indicators are highly correlated with price change, but that this is because of high correlations at either end of the distribution. In other words, when price change is either very strong or very weak, the indicators also tend to be extreme, so that they don't provide additional information. When, however, price change is small (up or down only a little), the correlations with indicators is quite a bit less and the indicators have more unique predictive value. What this suggests to me is a strategy of modeling large price-change days/weeks with price based predictors and modeling small price-change days/weeks with alternate predictors (sentiment, breadth, etc.). I will be trying this strategy out when I return on Tuesday.

On the heels of my last analysis, I decided to look at strong versus weak closes in daily SPY data going back to January, 2003 (N = 744). Over the entire sample, the correlation between where the market closes within its daily range and its price change for the day is a very high .77. Among days when price change was small, however, (up or down less than .20%; N = 170), the correlation between where the market closes within its range and price change is only .35. Performing a median split on the small price-change days, I found that SPY averaged a next-day gain of .18% (55 up, 30 down) when it closed near the lows for the day, but only a gain of .04% (45 up, 40 down) when it closed near its daily highs.

This modest reversal effect dissipates after one day. It will be interesting to track in other markets, including individual stocks. At this juncture, however, the basic strategy of modeling strong up days, neutral days, and strong down days separately is what is most important. Those who assert that technical indicators are valuable and those who assert they are worthless may both be right: they seem to be helpful within particular ranges of price-change distributions.

Neutral Trading Weeks

This past week, the S&P 500 barely budged. I went back to January, 1996 (N = 516 trading weeks) and examined what happens after SPY is neither up nor down more than .20% during the week (N = 34 occasions). The following week, SPY was up by an average of .03% (15 up, 19 down), certainly no bullish edge relative to the sample overall (.17%; 280 up, 236 down). Three weeks out, however, was more positive. After a neutral week, SPY averaged a three-week price change of .89% (22 up, 12 down), compared with .51% (287 up, 229 down) for the sample.

As we saw in yesterday's posting, how the market traded during the period of analysis made a difference. When the neutral SPY week closed nearer its week's lows (N = 17), its next week's change averaged -.38% (5 up, 12 down) but three weeks out it averaged 1.18% (12 up, 5 down). When the neutral SPY week closed nearer its week's highs (N = 17), its next week's change averaged .43% (10 up, 7 down) and three weeks out it averaged .59% (10 up, 7 down).

Overall, after a neutral week in SPY, there is no directional edge going forward the next week, but some indication of strength three weeks out. This is especially true for neutral markets that close weak (such as this past one). They tend to see weakness spill over into the following week before reversing and closing stronger three weeks out.

I will be exploring more intraday and intraweek patterns relative to how we open and close. The above finding is interesting, but clearly not based on a huge sample. And, of course, it will be interesting to see how markets other than the S&P test out.

Saturday, December 17, 2005

Reversal Days

Friday was interesting in that we traded about 1% above the open in SPY before reversing, going negative, and closing near the day's lows. I went back to January, 2003 (N = 744) and found 104 trading days where we closed in the bottom quarter of the day's range. Three days later in SPY, the market averaged a gain of .47% (73 up, 31 down), much better than the .14% for the sample overall (435 up, 309 down). It appears that days that close near their lows tend to reverse to show strength over the next three days. I found that smaller range days tended to reverse sooner than larger range days (such as Friday), which often saw weakness spilling into the next day's trade. By three days out, however, the size of the range on the weak day had no impact: results were uniformly bullish.

Here's the interesting thing, however. I performed a median split on the weak days based on how high above the day's open they traded. Friday, for instance, traded very solidly above its opening price before reversing. Other days start weak out of the gate and close near their day's lows. The days that traded higher above their opens were stronger three days out than days that did not trade significantly above their opens. Specifically, when we traded strongly above the open (N = 52), SPY three days out was up 41 times, down 11 (!) for an average gain of .72%. When we did not trade strongly above the open (N = 52), SPY over the next three days averaged a gain of .22% (32 up, 20 down).

In sum, days that close near their lows have been bullish three days out and days that trade well above their opens before closing near their lows have been especially bullish three days out. This will provide an interesting context to early trading this coming week.

Friday, December 16, 2005

Selling In Both Broad Market and Large Caps

On Thursday, we had solid selling pressure through the day. My Adjusted TICK ended at -379, and my Institutional Composite (a similar measure akin to the TIKI, or Dow TICK) finished at -356. Since July, 2003 (N = 615 trading days), when these have both closed below -300 but above -500 (N = 33), the market has been up the next day 20 times, down 13 for an average gain of .25%. The sample overall shows an average next day gain of .04% (338 up, 277 down).

This weekend I will begin compiling the few basic patterns that this site will monitor on an ongoing basis for trading edge 1-3 days out.

Thursday, December 15, 2005

SP Up, The Others Down: Unexpected Result

Well, here's a piece of humility for the doc. The last eight days in SPY have been up by about .75%. During that same time, the NASDAQ (QQQQ) and Russell 2000 (IWM) have been down. This has only occurred six times since 2003 (N = 737 trading days). I would have bet my bottom dollar that the outlook the next eight days would have been subnormal. Nope.

Eight days later, SPY was up five times, down only once for an average gain of 1.27%. This compares favorably with the overall sample average of .37% (434 up, 303 down). Eight days later, QQQQ and IWM were up by an average 2.03% and 1.86% (4 up, 2 down, both cases). This compares with their sample averages of .56% (412 up, 325 down) and .66% (429 up, 308 down), respectively.

The sample size (N = 6) is far too small for reliable statistical inference, but the point here is that--at least since 2003--a lagging broad market has, if anything, caught up to an outperforming S&P, not the reverse.

Wednesday, December 14, 2005

Selling On an Up Day

The S&P 500 was up Tuesday by over .4%, but my Adjusted NYSE TICK showed greater selling on the day than buying (i.e., more stocks trading on downticks than upticks). This typically occurs when the buying is stronger in the large caps than the rest of the stock universe. It is also not common. Since July, 2003 (N = 609 trading days), it's only occurred 22 times.

Overall, the three-day average change for the sample is .12% (360 occasions up, 249 down). After an up day with net selling, however, the next three days bring an average loss of -.06% (9 occasions up, 13 down). This is one of the reasons why, despite pushing toward new highs, I am not aggressively bullish on this market. Another reason: We registered the highest number of stocks trading in intermediate-term downtrends since November 17th--despite it being an up day, with averages near recent highs.

Tuesday, December 13, 2005

More Price Momentum Patterns

On Monday we looked at 3-day momentum in the S&P 500 and its implications for the next three days. Now we'll do the same for the NASDAQ 100 Index (QQQQ) and the S&P 400 Midcap Index (MDY).

Once again, we're investigating July, 2003 through November, 2005 (N = 616 trading days). When the three-day price change in QQQQ is > 2.1% (N = 80), the next three days on average are up .48% (53 up, 27 down). When the three-day price change in QQQQ is < -1.7% (N = 81), the next three days on average are up .40% (46 up, 34 down). Interestingly--as with SPY--when three-day momentum in QQQQ was moderate (N = 455), the next three days average only .07% (245 up, 210 down). Looking at MDY, when three-day price change is > 1.9% (N = 78), the next three days in MDY average .25% (49 up, 29 down). When three-day price change < -1.45% (N = 81), the next three days in MDY are up .54% (53 up, 28 down). When MDY displays a moderate price change over three days, the next three days average only .16% (264 up, 192 down).

Again, these findings suggest that much of the upside action since 2003 is momentum related, following periods of very strong and very weak price momentum. Let's add this to our stable of market patterns providing a potential trading edge.