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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    41 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Working...
    X