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 helpwanted, Today, 03:06 AM
    1 response
    14 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X