The Stock Market Crash Indicator [Free Code]

UPDATED: Wednesday 12 January 2022   |   AUTHOR: Barry Taylor
When Will the Stock Market Crash?

When will the stock market crash? Everyone would like to know the answer to that question!

Large Contract (SP) Data No Longer Available

On 30 September 2021 the large S&P500 contract (symbol: SP) ceased trading. The Stock Market Crash Indicator featured in this video and article is based on this contract. As a consequence the indicator and stock market crash signal unfortunately no longer work.

Well, here’s a simple indicator, using the weekly Commitment of Traders data, that has correctly signalled 10 of the last 10 market corrections and crashes – with only 5 false signals – since 1990.

And as I’m updating this article, in late March 2015, we’ve just had another crash warning signal go off. So let’s see how this one plays out.

Barry, Just a word … Thanks!! The analysis of COT was simply amazing … I’m very thankful I ran into your site and your indicators. Geoffrey B.

Fasinating, Insightfull, Educational. Thank You! John C.

But before we get to the indicator code, let’s check out the stats and charts.

The Stock Market Crash Indicator has pretty good stats

image of stock market crash indicator stats

The indicator has signalled all 10 of the last corrections and crashes since 1990. The average delay between the signal and the market high is 5 weeks – but has been as high as 18 weeks. Most of the time there is a single indicator signal, but occasionally a double. And the indicator has only ever produced 5 false signals (some might count it as 6 though).

Certainly worth keeping track of.

The last Crash Warning Signal predicted the 2014 correction

image of stock market correction 2014
Stock Market Crash Warning: 26 September 2014

Although this last correction was only 9.9% on the S&P500 futures, it was so close to the 10% technical definition of a correction that I’m going to count it. During this correction, the NASDAQ fell 10.7% and the Russell 14.4% – which shows the market sell-off was sizeable.

Having this successful signal re-confirmed the usefulness of this indicator to me, having had 3 false signals during 2013 and early 2014.

We had 3 false Signals during 2013 and early 2014

image of when will the stock market crash 2013
Stock Market Crash Warning: 2013 – 2014

The crash warning signals during 2013 and early 2014 just never worked out. We had 3 in-a-row but the market was just too strong and the Commitment of Traders data quickly reversed and the uptrend continued. Maybe Fed intervention and continued Quantitative Easing just kept the market from behaving “normally” and correcting. Who knows.

And here are the Indicator signals since 1990

when will the stock market crash 2010
Stock Market Crash Indicator: 2010 – 2013
when will the stock market crash 2006
Stock Market Crash Indicator: 2006 – 2009
when will the stock market crash 2003
Stock Market Crash Indicator: 2003 – 2006
when will the stock market crash 1997
Stock Market Crash Indicator: 1997 – 2000
when will the stock market crash 1993
Stock Market Crash Indicator: 1993 – 1996
when will the stock market crash 1989
Stock Market Crash Indicator: 1989 – 1992

The Indicator code is essentially 3 lines

image of stock market crash indicator code
Stock Market Crash Indicator: TradeStation EasyLanguage Code

The setup for this Stock Market Crash Indicator goes like this:

  1. Professionals hedging as the market makes new 52 week highs, then
  2. They reduce their hedges as the market strength continues, until
  3. They end up with a net-Long position, and finally
  4. Start Shorting in anticipation of a stock market correction.

And a snippet of the indicator code in TradeStation EasyLanguage is shown above.

Please remember the caveat discussed in the video above: the indicator is based on the SP contract data which is becoming more and more thinly traded. Despite this, I’ll continue to track the progress of this remarkable Stock Market Crash Indicator.

Now, can the Bond market help forecast when the stock market will crash? Check out this Bond Market indicator: The Intermarket Oscillator

Stock Market Crash Indicator for TradeStation

You can download the TradeStation EasyLanguage code in both .ELD and text formats below. Use the indicator on weekly charts of @SP.P to duplicate the signals. The indicator is provided free, so please, give credit if due and don’t expect support.

Click this link for more free indicator code.