• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help on ToTime(Time[0])

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

    Help on ToTime(Time[0])

    Hello Everyone,

    I moved my Ninja Trader installation to a different computer and now something kind of stop working in my script. I have a strategy with an instrument set for every 30 minutes CalculateOnBarClose = false.

    I'm treating every tick on the method OnBarUpdate, since my instrument frequency on the strategy is set every minutes, for example, at 9:20am the method ToTime(Time[0]) would show 9:30am. Another example, if right now was 10:16am, the ToTime(Time[0]) would show 10:30am.

    Thing is , now that I installed NT on another computer, even making sure I set it up everything as it was before, right now ToTime(Time[0]) is always showing 18:30. On every bar update it alwas shows that.

    I can't seem to find where the problem is? Based on the description above, would you guys recommend me anything? What settings do typically affect ToTime(Time[0]) ..

    Many Thanks in Advance,

    Rodrigo

    #2
    Hello Rodrigo,

    Thank you for your note.

    Please try syncing the PC clock with the timezone.

    Please use the steps below to change your Time Zone and sync the PC clock, note to set the server to time.nist.gov.

    You can sync your PC clock by double clicking on the clock in the lower right corner of your desktop. Press 'Change time zone...' Set the Time zone and press 'OK'.

    Once you have done that, click on Internet Time tab set the server to time.nist.gov and then click Update. Your PC clock should now be updated.

    You will need to restart NinjaTrader for this to take affect
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Awesome, it worked!!

      thanks a lot

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Venom, Today, 01:05 PM
      0 responses
      2 views
      0 likes
      Last Post Venom
      by Venom
       
      Started by Dert66, Today, 12:11 PM
      0 responses
      6 views
      0 likes
      Last Post Dert66
      by Dert66
       
      Started by jjanguda, Today, 10:04 AM
      0 responses
      211 views
      0 likes
      Last Post jjanguda  
      Started by sambo81, Today, 09:20 AM
      1 response
      12 views
      0 likes
      Last Post sambo81
      by sambo81
       
      Started by TopGunNote, 05-14-2019, 01:12 PM
      3 responses
      80 views
      0 likes
      Last Post dpaulw
      by dpaulw
       
      Working...
      X