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