Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trading accross multiple time Zones

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

    Trading accross multiple time Zones

    Hi I’m currently in a NZ time zone. I have my computer set to NZ time. I would like my strategy to be coded to US EST without adjusting the time on my computer so that it won’t affect other programs I have running and also then I won’t have to worry about differences in daylight saving time between the US and here. I would also like to be able to give this strategy to people in Australia without having to modify the time settings to match the Aussie time zone.
    I’m currently using……


    if (ToTime(Time[0]) >= 90000 && ToTime(Time[0]) <= 140000 )


    to manage the time for the code which executes on NZ time. Is there a way to tie this directly to US EST regardless of the computers settings so it’s then just set and forget.




    Thanks

    #2
    Hello jamarc,

    Thanks for your post.

    Please review the methods available with the SessionIterator: https://ninjatrader.com/support/help...oniterator.htm

    In particular the method GetTradingDayBeginLocal(), this method converts the trading day begin time from the exchange timezone to local time, and returns a DateTime object in the local timezone. Reference: https://ninjatrader.com/support/help...beginlocal.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X