Skip to content

Algo.MarketSessions

property · Algo · cAlgo.API.Internals

DesktopCLICloud

Returns current market sessions.

Definition

public MarketSession MarketSessions {get;}
api.MarketSessions: MarketSession

Returns MarketSession

Examples

Print("Current market sessions: {0}", MarketSessions);
if (MarketSessions.HasFlag(MarketSession.London))
    Print("London session is open");
api.Print(f"Current market sessions: {api.MarketSessions}")
if api.MarketSessions.HasFlag(MarketSession.London):
    api.Print("London session is open")