createholidays

Create trading calendars

Syntax

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

Arguments

Filename

The data file name.

Codefile

The code file name.

InfoFile

The info file name.

TargetDir

The target folder where to write the new holidays.m files.

IncludeWkds

Option to include weekends in the holiday list. Values are:

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

  • 1 – Include weekends in the holiday list.

Wprompt

Option to prompt for the file location for each holiday.m file that is created. Values are:

  • 0 – Do not prompt for the file location.

  • 1 – Prompt for the file location.

NoGUI

Run createholidays without displaying the Trading Calendars graphical user interface. Values are:

  • 0 – Display the GUI.

  • 1 – Do not display the GUI.

Description

createholidays(Filename, Codefile, InfoFile, TargetDir, IncludeWkds, Wprompt, NoGUI) programmatically generates the market-specific holidays.m files without displaying the interface.

Examples

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

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

See Also

Was this topic helpful?