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

BarsRequest

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

    BarsRequest

    When I am looking to download bars with BarsRequest I see that the data range to download is fromLocal ToLocal. Does that mean that I have to convert the time to local zone in my script for people outside the session time zone ?

    Thank you !

    #2
    Hello ,

    The FromLocal represents a DateTime representing the starting date from where the data will begin.
    ToLocal represents a DateTime representing the end date used in the request.

    This will be in the time zone of your local PC clock (or the time zone selected in the Tools > Options window).
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea.

      So it means if I want to have data starting March 1 2019 for NYMEX data ( Crude Oil ) and I am in Australia I will have to convert March 1 2019 to Australia time zone
      as used that converted date in my From data ?

      Comment


        #4
        Hello blar58,

        Yes, if your local PC is using Australian Eastern Daylight Time then any dates and times used in the script will also need to be based in (or converted to) the time zone of your PC.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          OK

          Thank you very much Chelsea.

          By the way just to make sure that I understand what you mentioned before.
          If I go to Tools --> options and I change the time zone under the time zone property will I be able to test my script on different time zone ?
          Will it change time zone for my whole PC or just for Ninja Trader ?

          Comment


            #6
            Hello blar58,

            Changing the Tools > Options > General > Preferences > Time zone setting will only set the time zone for the NinjaTrader platform, not the entire computer.

            After changing the time zone all historical data must be redownloaded.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              OK

              Many thanks !

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by WHICKED, Today, 12:45 PM
              2 responses
              16 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by GussJ, 03-04-2020, 03:11 PM
              15 responses
              3,272 views
              0 likes
              Last Post xiinteractive  
              Started by Tim-c, Today, 02:10 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Taddypole, Today, 02:47 PM
              0 responses
              2 views
              0 likes
              Last Post Taddypole  
              Started by chbruno, 04-24-2024, 04:10 PM
              4 responses
              51 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Working...
              X