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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    578 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X