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 kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      28 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      28 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      139 views
      0 likes
      Last Post SalmaTrader  
      Working...
      X