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 BarzTrading, Today, 07:25 AM
    2 responses
    25 views
    1 like
    Last Post BarzTrading  
    Started by devatechnologies, 04-14-2024, 02:58 PM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by tkaboris, Today, 08:01 AM
    0 responses
    4 views
    0 likes
    Last Post tkaboris  
    Started by EB Worx, 04-04-2023, 02:34 AM
    7 responses
    163 views
    0 likes
    Last Post VFI26
    by VFI26
     
    Started by Mizzouman1, Today, 07:35 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X