to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
The Dow Jones Industrial Average (Index: DJI) ranks among the world's oldest stock market indices. Created by Charles Dow in 1884, the price-weighted index originally included just 11 stocks, which was later expanded to 20 firms in 1916 and finally to 30 companies in 1928.
Over the years, the membership of the DJI has changed, with companies being periodically removed and replaced. Today, the S&P 500 (Index: SPX) has largely replaced the Dow Jones Industrials as the major index that's most representative of the most of the U.S. stock market, but the much longer history of the DJI has given it a popular staying power. For decades, it was *the* index that summarized the state of the U.S. stock market.
We're tapping a large part of that history today in a project exploring winning and losing streaks for the Dow Jones Industrial Average. We pulled the index' price data through Measuring Worth's DJI database, which documents the daily closing value of the index for each trading day from 2 May 1885 onward. We tallied up the number of up days and down days for the index, then grouped them into winning and losing streaks based on how many days they lasted.
The following chart summarizes our results, presenting the number of times a winning or losing streak of the indicated number of days was recorded. The inset chart shows the frequency of winning and losing streaks as a percentage of the 38,131 trading days of the available DJI price data, which runs through 21 February 2025.
Some quick observations. Winning streaks are more common than losing streaks in the Dow Jones Industrial Average. The longest streaks lasted 14 trading days, for which there is one example of each.
"Single day" streaks are the most common, representing a little over 48% of the total, with nearly an equal number of up and down days. Two day long streaks account for more than 25% of the total, with two-day long winning streaks covering 13.4% of the index' total number of trading days and two-day long losing streaks covering nearly 12%. Longer streaks rapidly become less and less common.
The DJI data includes 209 days in which the level of the index did not change from its previous day's closing value, which is not covered in the chart. That makes an unchanged day for the DJI almost as likely as a seven-day long winning streak for the index!
The longest streak in which the DJI was unchanged is three trading days, which has happened three times in the index' history. The most recent occurrence of that phenomenon ran from 27 January 1912 through 30 January 1912.
Samuel H. Williamson, 'Daily Closing Value of the Dow Jones Average, 1885 to Present,' [Online database]. MeasuringWorth, 2025.
Image Credit: Microsoft Copilot Designer. Prompt: "An editorial cartoon of a Wall Street bull and a bear running in a race."
Labels: data visualization, stock prices
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.