Documentation

This is machine translation

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

createholidays

Create trading calendars

Syntax

  • createholidays(Filename,Codefile,InfoFile,TargetDir,IncludeWkds,
    Wprompt,NoGUI)
    example

Description

example

createholidays(Filename,Codefile,InfoFile,TargetDir,IncludeWkds,
Wprompt,NoGUI)
programmatically generates the market-specific holidays.m files (from FinancialCalendar.com financial center holiday data) without displaying the interface.

    Note:   To use createholidays, you must obtain data, codes, and info files from http://www.FinancialCalendar.com trading calendars. The data files must be in the required MATLAB® format.

Examples

collapse all

Use createholidays to create holidays*.m files from My_datafile.csv in the folder c:\work. Weekends are included in the holidays list based on the input flag INCLUDEWDKS = 1

createholidays('FinancialCalendar\My_datafile.csv',...
'FinancialCalendar\My_codesfile.csv',...
'FinancialCalendar\My_infofile.csv','c:\work',1,1,1)

Related Examples

Input Arguments

collapse all

Data file name, specified using a character vector.

Data Types: char

Code file name, specified using a character vector.

Data Types: char

Info file name, specified using a character vector.

Data Types: char

Target folder where to write the new holidays.m files, specified using a character vector.

Data Types: char

Option to include weekends in the holiday list, specified using a numeric with value 0 or 1. Values are:

  • 0 – Do not include weekends in the holiday list.

  • 1 – Include weekends in the holiday list.

Data Types: logical

Option to prompt for the file location for each holiday.m file that is created, specified using a numeric with value 0 or 1. Values are:

  • 0 – Do not prompt for the file location.

  • 1 – Prompt for the file location.

Data Types: logical

Run createholidays without displaying the Trading Calendars user interface, specified using a numeric with value 0 or 1. Values are:

  • 0 – Display the GUI.

  • 1 – Do not display the GUI.

Data Types: logical

See Also

Introduced in R2007b

Was this topic helpful?