Skip to content

CustomSymbolTradingHoliday.StartTime

property · CustomSymbolTradingHoliday · cAlgo.API Since 5.3

DesktopCLICloud

Gets the start date and time of the trading holiday.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public DateTime StartTime {get;}
customSymbolTradingHoliday.StartTime: DateTime

Returns DateTime

Examples

var holiday = new CustomSymbolTradingHoliday("Christmas", new DateTime(2025, 12, 25), new DateTime(2025, 12, 26), true);
Print("Holiday starts at {0}", holiday.StartTime);
from System import DateTime
holiday = CustomSymbolTradingHoliday("Christmas", DateTime(2025, 12, 25), DateTime(2025, 12, 26), True)
api.Print(f"Holiday starts at {holiday.StartTime}")