CustomSymbolTradingSession.StartDay
property · CustomSymbolTradingSession · cAlgo.API Since 5.3
DesktopCLICloud
Day of week when trading session starts
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 DayOfWeek StartDay {get;}
customSymbolTradingSession.StartDay: DayOfWeek
Returns DayOfWeek
Examples
var session = new CustomSymbolTradingSession(DayOfWeek.Monday, DayOfWeek.Friday, TimeSpan.FromHours(8), TimeSpan.FromHours(17));
Print("Session starts on {0}", session.StartDay);
from System import DayOfWeek, TimeSpan
session = CustomSymbolTradingSession(DayOfWeek.Monday, DayOfWeek.Friday, TimeSpan.FromHours(8), TimeSpan.FromHours(17))
api.Print(f"Session starts on {session.StartDay}")