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