RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

HolidayList

 

 

 

 

Category

Settings or Strategy Elements or Order Settings

Description

Specifies the path to a text file which contains a list of future holidays, or "us_auto", "au_auto" or "ca_auto"

Notes

The purpose of the holiday list is to enable RealTest to know the next market date when generating orders.

For backtesting, RealTest does not require a holiday list because there are simply no data bars with market holiday dates.

There is therefore no reason to provide a holiday list except when generating orders.

A settings-level HolidayList will apply to all strategies in the script.

A strategy-level HolidayList only applies to that strategy and will override the settings-level list if both are provided.

Instead of a file name, you can specify one of the following and RealTest will calculate the standard market holidays and early-close days for the next five years, starting with the year of the latest date in the data:

HolidayList: us_auto - US stocks, using NYSE holiday rules

HolidayList: au_auto - Australian stocks, using ASX holiday rules (including the 2:10pm early closes on Christmas Eve and New Year's Eve)

HolidayList: ca_auto - Canadian stocks, using TSX holiday rules (including the 1:00pm early close on Christmas Eve)

Add "_log" to any of these, e.g. HolidayList: au_auto_log, to cause the generated holiday list to be written to a log window when a test is run.

The calculated lists follow each exchange's standard rules and do not include one-time closures such as the NYSE closure on 2025-01-09. If an exchange announces such a closure, use a holiday list file instead.

To specify holidays for any other market, provide a text file with one holiday date per line.

The Examples folder includes holiday list files for US, AU, and CA.

Only future market holidays need to be listed (typically there are about 10 per year).

Dates on which the market closes early should also be included, preceded by an asterisk, e.g. *2022-11-25.

Early-close dates are used when generating orders that include specific times (good after time, good until date).

 

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC