Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session template name, start and end time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Session template name, start and end time

    Hello support,

    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,
    Last edited by Wajeeha; 02-16-2014, 09:20 AM.

    #2
    Hello Wajeeha,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    My colleague NinjaTrader_Bertrand offers up two examples of retreiving the session template information from both an indicator and strategy at the following link: http://www.ninjatrader.com/support/f...d.php?p=363430

    However, this is used in conjunction with an enum to pull the data after the user selects the session template. It can of course be adapted to pull the data you wish. Unfortunately, this is unsupported in NinjaScript, but NinjaTrader_Bertrand provides an indicator and information on using this with strategies.

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    166 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    320 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    246 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X