iBankCoin
Joined Nov 11, 2007
1,458 Blog Posts

Rejected by the 200 Day Average…What Happens Next?

For the last two days, SPY has traded above the 200 day moving average and then reversed to close beneath it. Is this rejection by the bear market demarcation a bullish or bearish development?

I wouldn’t know personally, but I’ve heard that rejection sucks. If this is true, SPY bulls must be feeling down in the dumps about now. Why? Because over the last two days, SPY has traded above the 200 day simple moving average but has been unable to close above it. This would seem to be a bearish development. Let’s test it and find out.

The Rules:

Buy SPY at the Close if:

  • Yesterday SPY traded above the MA200 but closed beneath it AND today SPY traded above the MA200 but closed beneath it.

Note that on the graph below this will be referred to as “Setup.”  “Setup” does not care what happened 3 days ago, so 3 days ago SPY could have been trading above or below the MA200. I added an additional rule to be sure SPY had moved from beneath the MA200 and then was rejected by it. These rules are as follows:

Buy SPY at the Close if:

  • 2 Days ago SPY did not trade above the MA200
  • Yesterday SPY traded above the MA200 but closed beneath it AND today SPY traded above the MA200 but closed beneath it.

On the graph, this more refined version of “Setup” is labeled “Only 2 Days Above.”

All SPY history was used. No commissions or slippage included.

The Results:

Bottom Line:

There were just enough samples of “Setup” to be generalizable, but only 9 samples of “Only 2 Days Above.”

My interpretation is that on average, when SPY is hovering near the 200 day moving average, it is bullish (reference “Setup” results).

However, when SPY moves up from beneath the MA200 and is then rejected by it twice (reference “Only 2 Days Above”), SPY has tended to consolidate near the average for approximately 3 weeks, and then begins to climb.

It looks to me like SPY is not much affected by rejection. The index has tended to regroup and has then kept on truckin’.

 

Comments »

Delayed Gratification SPY Study: New 20 Day Low, Then 3 Day Surge

Unfortunately, computer problems kept me from studying the new 20 day low and the 3 day surge that followed. The new 20 day low was set on 11.25.11 and the 3 day surge concluded on 11.30.11. I want to now see what has followed such a setup, albeit a couple of days late.

Last week was an incredible week – one for the record books.

On Friday, 11.25, the day after Thanksgiving, SPY made a new 20 day low. Monday, news of improvement in the EuroZone crisis led to a large gap-up. The market continued to rocket through Wednesday, making 3 consecutive higher closes, logging a three day rate of change of 7.44%. After such a surge, it is normal to want to wait and see if a pullback occurs. It is hard to buy after the market moves up so far, so fast.

The Setup:

Buy SPY at the close if:

  • 3 Days Ago SPY Made a New 20 Day Low
  • It Makes 3 Consecutive Higher Closes
  • The 3 Day Rate of Change is Greater Than .99, or 2.99, or 5.99

Sell SPY at the close Y days later. No commission or slippage included. All SPY data used.

The Results:

First, let’s look at the sample sizes for the three different ROCs.

  1. ROC3>.99 had 58 occurrences with 38 held the full 50 days.
  2. ROC3>2.99 had 34 occurrences with 26 held the full 50 days.
  3. ROC3>5.99 had 6 occurrences with all 6 held the full 50 days.

This setup had a win rate that increased as the ROC3 increased. ROC3>.99 had a win rate that averaged near 60%, but higher ROC3s had win rates in the 70s and 80s.

As the ROC3 amount increased, the average length of consolidation after the setup shortened. From the chart above, ROC>.99 consolidated about 11 days before moving again. ROC3>2.99 paused for about 6 days while ROC>5.99 barely consolidates at all before taking off again.

All but one of the six ROC3>5.99 occurred during a bear market, with one of them marking the bottom after the 2008 and early 2009 bear market. Another one of the six marked a major bottom in 2002 while another marked a major short-term bottom in 2008. It remains to be seen whether our current setup will mark a major bottom. Keep in mind it is included in the six.

For the ROC3>.99 and ROC3>2.99, the average losing trades maxed out at near -7% while the average winning trades maxed out at near 6%. Because there were more winners than losers, the average is positive. Any losing trades for ROC3>5.99 were very small.

What Does It All Mean?

If this setup is going to work, we should likely know next week. Setups modeling last-week’s behavior have typically marked long-term bottoms (small sample sizes aside) and have not consolidated for very long before moving again. The setups with larger sample sizes still show an edge here. Perhaps the best way to play this is to wait for confirmation in the form of a new short-term closing high.

There is significant resistance around SPY $126.00. If the market blows through this resistance, that in itself will be significant. If that occurs, I will definitely view that as confirmation of a significant bottom.

 

Comments »

ROC Indicator Goes Short

This long-term indicator signaled a closing of the open long position and the opening of a short sell, at the close. To read more about this indicator, here is the category where the posts are housed.

In a related, yet unrelated development, my computer issues appear to be solved. It was a bad AC adapter/charger. I am off and running again. Alas, I missed cranking out a great study after a monumental 400 point day. Oh well. After a short post, I will be offline and backing up the laptop. Whew…

The ROC indicator last went long at the close of October 18. That long was closed tonight for a gain of 1.95% (not including commissions or slippage). The arrows on the chart below show the September short trade and the two longs and short that were initiated in October.

Click on the chart to enlarge…

The indicator is beneath the SPY chart.

Comments »

My Computer Has Failed?

I came home this evening to a dead computer. The computer in reference is my laptop which I use to trade, so it has all my trading applications and backtesting software installed. I did back it all up about a month ago, so likely nothing major is lost.

I’m thinking that it might just need a new AC power adapter/charger as the light does not light up on the charger brick anymore when plugged into the wall, and the laptop appears to be getting no power. Because the battery ran out of charge, it is difficult to determine if it is a motherboard issue. Unfortunately, when I got out my voltmeter to test the cord, I discovered that non-use of the meter over the past 5 years resulted in it corroding to the point where it no longer works. Can’t catch a break tonight. If it turns out to be the cord, then I should be back in business within a few days or so. If not, I will likely be upgrading to a new laptop. At least it is a good time of year to be making such a purchase.

Unfortunately I am left with only a little netbook, and it is not going to handle my trading applications. Until I get back up and running, I am not going to be able to run my nightly scans and tests. Blogging may be light until I get things figured out.

Should things take longer than I expect to work out, I’ll just have to pirate my wife’s awesome new laptop.

I absolutely hate when this kind of stuff happens.

Comments »

Interesting Breadth System that (Almost) Beats the Market

Yesterday I wrote about a simple breadth system that has beat the market over the last ~18 years. This evening I want to describe another simple breadth system. I find it to be very interesting concept, but it is not going to set the world on fire, or make you rich beyond your wildest dreams.

The system uses an indicator which calculates the percentage of all major exchange listed stocks that are trading above their 50 day moving averages (PctAboveMA50) and 200 day moving averages (PctAboveMA200). All stocks, excluding OTCBB, trading above $1 are used to calculate the percentage. The calculation includes de-listed, non-surviving stocks, so the percentage 10 years ago should be very close to what it would have been in real-time, 10 years ago.

I observed that these metrics, particularly the PctAboveMA50, tend to be volatile. I used an EMA to smooth them, using a 5 period EMA on the PctAboveMA50 and a 35 period EMA for the PctAboveMA200. These EMAs were chosen through optimization, but varying the EMA periods didn’t make a huge difference.

Those two EMAs are what constitute the indicator that triggers the buys and sells.

The Rules

Buy SPY at the Close if:

  • EMA(PctAboveMA200,35) crosses above EMA(PctAboveMA50,5)

Sell SPY at the Close if:

  • EMA(PctAboveMA200,35) crosses beneath EMA(PctAboveMA50,5)

No commissions or slippage included. All SPY history used.

What interests me about this system is that it is counter-intuitive (at least to me). We are buying when there are fewer stocks above the 50 day average than above the 200 day average. Yes, after thinking deeply about what that truly means, it makes sense why it works.

The chart above shows the indicator and the signals.

The Results:

SPY –

  • Compound Annual Growth Rate: 4.95%
  • Winning Percentage: 71.93%
  • Max System % Drawdown:  -31.67%
  • Exposure: 43.25%
  • Number of Trades: 57
  • Sharpe Ratio: .71

As I noted before, I like the concept more than the performance. My thinking is that it could be a jumping off point for something better.

 

Comments »

A Simple Breadth System that Beats the Market

What if you could have your capital exposed to the market just 16% of the time, make a handful of trades a year, and still beat the market?

I really like breadth indicators. I fool around with them often. Here is a new one (nothing earth-shattering, but I haven’t seen anything written about it by others) that fulfills my desire to keep things simple, reduce drawdowns, and beat the market. It also has a high percentage of winning trades, which may make it easier to trade, in my opinion.

The system uses an indicator which calculates the percentage of all major exchange listed stocks that are trading above their 20 day moving averages (PctAboveMA20). All stocks, excluding OTCBB, trading above $1 are used to calculate the percentage. The calculation includes de-listed, non-surviving stocks, so the percentage 10 years ago should be very close to what it would have been in real-time, 10 years ago.

The Rules:

  • Buy SPY or QQQ at the Next Open if the PctAboveMA20 < 20;
  • Sell SPY or QQQ at the Next Open if the PctAboveMA20 > 60;

No commission or slippage included. All SPY (starting 2.1.93) or QQQ (starting 3.10.99) history used.

The Results:

SPY –

  • Compound Annual Growth Rate: 5.44%
  • Winning Percentage: 77.42%
  • Max System % Drawdown:  -32.30%
  • Exposure: 16.66%
  • Number of Trades: 31
  • Sharpe Ratio: 1.86

QQQ –

  • Compound Annual Growth Rate: 8.31%
  • Winning Percentage: 80.77%
  • Max System % Drawdown:  -33.11%
  • Exposure: 16.01%
  • Number of Trades: 26
  • Sharpe Ratio: 1.98

Take a Look:

Click on the chart to enlarge…

As you can see, the indicator triggered a long entry last Wednesday morning.

Note that the indicator misses some nice setups, while waiting for the extreme < 20 reading. This could perhaps be improved, possibly by using Bollinger Bands around the PctAboveMA20 and using them to trigger a buy or sell. Bands may allow the system to catch a dip when volatility is low and the the market is in a strong uptrend – see September 2010 through March 2011 in the chart above. Just thinking out loud…

Equity Curve for QQQ

In the next post, I’ll be describing another, more interesting breadth system compared to the one above.

Comments »