Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session Begin and Session End

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

    Session Begin and Session End

    Hallo to all
    I have a question for ninjatrader 7.
    My problem is that my local time has different offset than the instrument's time i use during the year (due to Daylight Saving).
    Before ninjatrader i was using tradestation witch sends data with exchange's time (if you want).
    I compute the DST time differences with ninjascript but at least for version 6.5 there wasn't any way to set Session Begin and Session End via ninjascript (as i know) .

    What about ninjatrader 7 ? Is this problem fixed in any way ?

    Thanks

    #2
    voyager, welcome to our forums - with NinjaTrader 7 you can define needed session templates in the new session manager including the timezone those are setup for.

    You can then access those in NinjaScript via

    Code:
     
    BarsArray[int barSeries].Session.SessionsOfDay[int dayOfWeek].BeginTime
    Code:
    BarsArray[int barSeries].Session.SessionsOfDay[int dayOfWeek].EndTime
    [LEFT][/LEFT]

    Comment


      #3
      Thanks
      That keeps me happy.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      324 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      250 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      351 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      180 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X