In NinjaTrader is there any way to get names, start and end time of session templates present in session manager through coding? I don't need Bars.Session.GetNextBeginEnd as it will give session time of current bar series only. But I need similar method to get time of certain session templates, something along the lines of
For session names:
Cbi.SessionList sessionTempList in Cbi.SessionList.GetObjects() similar to the way we get instruments list from instruments manager.
For session start/end time:
Session("Session template name").GetNextBeginEnd or only Session("Session template name").GetBeginEnd
Please advise.
Thanks,
Comment