Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    287 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    180 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    178 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    263 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    216 views
    0 likes
    Last Post CarlTrading  
    Working...
    X