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

Time() and ToTime()

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

    Time() and ToTime()

    What time zone are the NT time commands referencing from?

    for example I have this coded into my strategy:

    Code:
    if (ToTime(Time[0]) >= 83000 && ToTime(Time[0]) <= 150000)
    I am in the U.S. Central time zone. Will this code be interpreted as 8:30 AM to 3:00 PM central time? Or 8:30 to 3 in a different time zone?


    Thanks

    #2
    sra18376, great question - that would always be your local PC set timezone, so Central US in your case.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by terkk, Today, 01:16 PM
    2 responses
    19 views
    0 likes
    Last Post desjaimz  
    Started by TraderElegante, Today, 12:14 PM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by dgee949, Today, 11:44 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_JustinD  
    Started by NinjaTrader_Kate, Today, 12:01 PM
    0 responses
    20 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by efeuvejota01, Today, 11:42 AM
    4 responses
    37 views
    0 likes
    Last Post efeuvejota01  
    Working...
    X