Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

current Time

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

    current Time

    How do i get current time? Time[0] only returns the bar time and DateTime,Now return real time which irrelevant if i'm run on historical data.

    10x

    #2
    Hello kiss987,
    You can use the below unsupported code to get the current time.

    Code:
    Bars.MarketData.Connection.Now
    Please let me know if I can assists you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Joydeep View Post
      Hello kiss987,
      You can use the below unsupported code to get the current time.

      Code:
      Bars.MarketData.Connection.Now
      Please let me know if I can assists you any further.
      Does that show the exchange time, or the computer time?

      Comment


        #4
        exchange time.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        57 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        36 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        165 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        101 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        162 views
        2 likes
        Last Post CaptainJack  
        Working...
        X