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

Uncertainty about timezone in my script

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

    Uncertainty about timezone in my script

    Hi,

    I'm using UTC+1 for my Time zone and I have downloaded my ES fututes historical data with this config on.

    I would like to be sure that when I use : new TimeSpan(16, 00, 0) in my script, it always related to 10:00 Eastern Time (UTC-5) the whole year around.

    I am just having a doubt about the potential impact of the Daylight saving time shift.

    Alternatevely, is there a way to use something like : "new TimeSpan(10, 00, 0).EST" in my script (keeping UTC+1 in my general config) to ensure the right timing of my strategy ?

    Thanks

    #2
    Hello Vincere,

    When you use times in NinjaScript that will correspond to the times you see on the chart, the chart times are converted to the timezone you have selected in the platforms options menu. You would want to use times that match the data that you downloaded if you are trying to check for a certain time on the chart. Whatever 10am eastern appears as on the chart would be what you need to make the timespan use.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RubenCazorla, 08-30-2022, 06:36 AM
    3 responses
    77 views
    0 likes
    Last Post PaulMohn  
    Started by f.saeidi, Yesterday, 12:14 PM
    9 responses
    23 views
    0 likes
    Last Post f.saeidi  
    Started by Tim-c, Today, 03:54 AM
    0 responses
    3 views
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    4 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,772 views
    0 likes
    Last Post Leafcutter  
    Working...
    X