Functions Data

UpdateTradingDays

The UpdateTradingDays() function updates trading day information in the Quintessence database for a particular exchange.

This is typically used when trading calendars change – for example, when a new public holiday is declared.

Related functions: GetTradingDays


Syntax:

Qx.UpdateTradingDays(Data, [StartDay], Exchange, [ShowError])
  • In Excel with Quintessence add-in versions prior to 25.1, use: UpdateTradingDays()
 See parameter descriptions

DataThe range containing the data to upload (for example, a date and its new trading
day flag).
StartDay
(optional)
The start day of the week.
ExchangeThe exchange whose trading day calendar should be updated.
ShowError
(optional)
If set to TRUE, an error message will be displayed if the function fails.

Remarks:

  • Unless changed by the administrator, default parameter values are:
    • StartDay: Monday
    • ShowError: TRUE

Examples:

The examples provided below are based on fictitious data for illustrative purposes only.

> Example 1: Updating trading days


Current data in the database:

ExchangeDateTrading day
StockExchange13 October 2015FALSE
StockExchange14 October 2015FALSE
StockExchange15 October 2015TRUE

A new public holiday has been declared on 5 October, so the trading day status must be updated.

Update range (A1:B1):

5 October 2015FALSE

Formula:

=Qx.UpdateTradingDays(A1:B1, , " StockExchange1")

Use either the Upload Sheet or Upload Selected button in the Quintessence ribbon to apply the update to the trading day calendar. You can verify the change by calling GetTradingDays.