Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

nyseclosures

New York Stock Exchange closures from 1885 to 2050

Syntax

  • Closures = nyseclosures
    example
  • [Closures,SatTransition] = nyseclosures(StartDate,EndDate,WorkWeekFormat)
    example

Description

example

Closures = nyseclosures returns a vector of serial date numbers for all known or anticipated closures from January 1, 1885 to December 31, 2070.

Since the New York Stock Exchange was open on Saturdays before September 29, 1952, exact closures from 1885 to 1952 are based on a 6-day workweek. nyseclosures contains all holiday and special non-trading days for the New York Stock Exchange from 1885 through 2050 based on a six-day work week (always closed on Sundays). Use WorkWeekFormat to modify the list of dates.

example

[Closures,SatTransition] = nyseclosures(StartDate,EndDate,WorkWeekFormat), using optional input arguments, returns a vector of serial date numbers corresponding to market closures between StartDate and EndDate, inclusive.

Since the New York Stock Exchange was open on Saturdays before September 29, 1952, exact closures from 1885 to 1952 are based on a 6-day workweek. nyseclosures contains all holiday and special non-trading days for the New York Stock Exchange from 1885 through 2050 based on a six-day work week (always closed on Sundays). Use WorkWeekFormat to modify the list of dates.

Examples

collapse all

Find the NYSE closures for 1899:

datestr(nyseclosures('1-jan-1899','31-dec-1899'),'dd-mmm-yyyy ddd')
ans =

02-Jan-1899 Mon
11-Feb-1899 Sat
13-Feb-1899 Mon
22-Feb-1899 Wed
31-Mar-1899 Fri
29-May-1899 Mon
30-May-1899 Tue
03-Jul-1899 Mon
04-Jul-1899 Tue
04-Sep-1899 Mon
29-Sep-1899 Fri
30-Sep-1899 Sat
07-Nov-1899 Tue
25-Nov-1899 Sat
30-Nov-1899 Thu
25-Dec-1899 Mon

Find the NYSE closures for 1899 using a datetime array:

[Closures,SatTransition] = nyseclosures(datetime('1-jan-1899','Locale','en_US'),'30-Jun-1899')
Closures = 

  7×1 datetime array

   02-Jan-1899
   11-Feb-1899
   13-Feb-1899
   22-Feb-1899
   31-Mar-1899
   29-May-1899
   30-May-1899


SatTransition = 

  datetime

   29-Sep-1952

Find the NYSE closure dates using the 'Archaic' value for WorkWeekFormat:

datestr(nyseclosures('1-sep-1952','31-oct-1952','a'),1)
ans =

01-Sep-1952
06-Sep-1952
13-Sep-1952
20-Sep-1952
27-Sep-1952
04-Oct-1952
11-Oct-1952
13-Oct-1952
18-Oct-1952
25-Oct-1952

The exchange was closed on Saturdays for much of 1952 before the official transition to a 5-day workweek.

Related Examples

Input Arguments

collapse all

Start date, specified using a serial date number, date character vector, or datetime array.

Data Types: double | char | datetime

End date, specified using a serial date number, date character vector, or datetime array.

Data Types: double | char | datetime

Method to handle the workweek, specified using a date character vector with values 'Modern', 'Implicit', or 'Archaic'. This function accepts the first letter for each method as input and is not case-sensitive. Acceptable values are:

  • 'Modern' — 5-day workweek with all Saturday trading days removed.

  • 'Implicit' — 6-day workweek until 1952 and 5-day week afterward (no need to exclude Saturdays).

  • 'Archaic' — 6-day workweek throughout and Saturdays treated as closures after 1952.

Data Types: char

Output Arguments

collapse all

Market closures between the StartDate and EndDate, inclusive, returned as a vector of dates.

If StartDate or EndDate are all either serial date numbers or date character vectors, both Closures and SatTransition are returned as serial date numbers. If either StartDate or EndDate are datetime arrays, both Closures and SatTransition are returned as datetime arrays.

If both StartDate and EndDate are not specified or are empty, Closures contains all known or anticipated closures from January 1, 1885 to December 31, 2070 based on a WorkWeekFormat of 'implicit'.

Date of transition for the New York Stock Exchange from a 6-day workweek to a 5-day workweek, returned as the date September 29, 1952 (serial date number 713226).

If StartDate or EndDate are all either serial date numbers or date character vectors, both Closures and SatTransition are returned as serial date numbers. If either StartDate or EndDate are datetime arrays, both Closures and SatTransition are returned as datetime arrays.

More About

collapse all

Definition of holidays

holidays is based on a modern 5-day workweek. This function contains all holidays and special nontrading days for the New York Stock Exchange from January 1, 1885 to December 31, 2050.

Since the New York Stock Exchange was open on Saturdays before September 29, 1952, exact closures from 1885 to 2070 should include Saturday trading days. To capture these dates, use nyseclosures. The results from holidays and nyseclosures are identical if the WorkWeekFormat in nyseclosures is 'Modern'.

Introduced before R2006a

Was this topic helpful?