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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X