• 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

  • rgaleote
    replied
    Awesome, it worked!!

    thanks a lot

    Leave a comment:


  • NinjaTrader_CalH
    replied
    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

    Leave a comment:


  • rgaleote
    started a topic Help on ToTime(Time[0])

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by ezrakoper, Today, 03:05 PM
1 response
4 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by asmmbillah, Today, 02:23 PM
1 response
14 views
0 likes
Last Post NinjaTrader_Jesse  
Started by steveg, Today, 02:44 PM
1 response
7 views
0 likes
Last Post NinjaTrader_Heath  
Started by BatBart, Today, 01:24 PM
1 response
12 views
0 likes
Last Post Jonsey529  
Started by lightsun47, Today, 12:33 PM
1 response
11 views
0 likes
Last Post NinjaTrader_Jim  
Working...
X