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