Skip to content

CustomSymbolTradingSession.EndTime

property · CustomSymbolTradingSession · cAlgo.API Since 5.3

DesktopCLICloud

Time when trading session ends

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 EndTime {get;}
customSymbolTradingSession.EndTime: TimeSpan

Returns TimeSpan

Examples

var session = new CustomSymbolTradingSession(DayOfWeek.Monday, DayOfWeek.Friday, TimeSpan.FromHours(8), TimeSpan.FromHours(17));
Print("Session closes at {0}", session.EndTime);
from System import DayOfWeek, TimeSpan
session = CustomSymbolTradingSession(DayOfWeek.Monday, DayOfWeek.Friday, TimeSpan.FromHours(8), TimeSpan.FromHours(17))
api.Print(f"Session closes at {session.EndTime}")