Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

finding market times

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

    finding market times

    Is there a way to find market open time and close time for the US market.

    Example if I am in PST I want to market Open Market Time in EST so my indicator can adjust the time stamp to PST

    #2
    Hello ballboy11,

    Thanks for opening the thread.

    You can use GetNextBeginEnd() to get the begin and end of a session in the PC's local time.

    All timestamps in NinjaTrader 7 are in relation to the PC's local time.

    There is no timezone variable set in NinjaTrader 7 that will allow a user to have NinjaTrader 7 translate time stamps to another time zone. Translating the locally reported time to another time zone will need to be done on your own using the DateTime struct documented here: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

    GetNextBeginEnd() - http://ninjatrader.com/support/helpG...xtbeginend.htm

    Please let me know if I can be of further help.

    Comment


      #3
      I just leave my laptop in eastern standard time (new York time) I don't live in the USA. I'm not smart enough to code next begin end. My session templates which isolate ETH and RTH are in eastern standard time.
      Last edited by AndyM; 06-28-2017, 06:18 PM.

      Comment


        #4
        Timestamps

        I found the Previous Days time stamp. I can not find the open of the session though.
        Are all future markets NY session the same amount of hours?

        CL 8 hours
        NQ 8 hours
        etc

        If so I will subtract the hours if not how do I find the DayOpen?


        Print(Bars.TradingHours.GetPreviousTradingDayEnd(T ime[0])

        Comment


          #5
          Hello ballboy11,

          Were you looking for direction for NinjaTrader 7 or NinjaTrader 8?

          The property you have listed is a NinjaTrader 8 property. Within NinjaTrader 8 you may wish to use ActualSessionBegin or GetTradingDayBeginLocal() from a SessionIterator.

          SessionIterator - https://ninjatrader.com/support/help...oniterator.htm

          Please let me know if I may be of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          581 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          338 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 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
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X