annualTradingDays

Purpose

Computes number of trading days in a given year.

Format

n = annualTradingDays(a)
Parameters:a (scalar) – year.
Returns:n (scalar) – number of trading days in year.

Remarks

A trading day is a weekday that is not a holiday as defined by the New York Stock Exchange from 1888 through 2020. Holidays are defined in holidays.asc. You may edit that file to modify or add holidays.

Globals

\_fin_annualTradingDays
\_fin_holidays