Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RamiRK86, Today, 08:05 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by truepenny, Today, 03:59 AM
    2 responses
    12 views
    0 likes
    Last Post truepenny  
    Started by Mindset, Today, 06:19 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by alexstox, 10-16-2018, 03:29 PM
    13 responses
    357 views
    0 likes
    Last Post aligator  
    Started by truepenny, Today, 03:45 AM
    2 responses
    17 views
    0 likes
    Last Post truepenny  
    Working...
    X