Plugin.MarketSessions
property · Plugin · cAlgo.API
DesktopCLICloud
Returns current market sessions.
Environment behaviour
CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.
Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.
Definition
public MarketSession MarketSessions {get;}
api.MarketSessions: MarketSession
Returns MarketSession
Examples
Print("Current market sessions: {0}", MarketSessions);
api.Print(f"Current market sessions: {api.MarketSessions}")