Skip to content

CustomSymbolTradingSession.EndDay

property · CustomSymbolTradingSession · cAlgo.API Since 5.3

DesktopCLICloud

Day of week 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 DayOfWeek EndDay {get;}
customSymbolTradingSession.EndDay: DayOfWeek

Returns DayOfWeek

Examples

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