Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 TraderIqbal, 10-20-2023, 10:12 AM
        2 responses
        118 views
        0 likes
        Last Post Funnywo
        by Funnywo
         
        Started by Creamers, 04-27-2024, 05:32 AM
        12 responses
        72 views
        0 likes
        Last Post Creamers  
        Started by fredericlebre, Today, 01:19 AM
        0 responses
        7 views
        0 likes
        Last Post fredericlebre  
        Started by TraderJA, Today, 12:06 AM
        0 responses
        10 views
        0 likes
        Last Post TraderJA  
        Started by SnailHorn, Yesterday, 10:49 PM
        0 responses
        9 views
        0 likes
        Last Post SnailHorn  
        Working...
        X