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

Broker Server Time

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

    Broker Server Time

    HI:

    I am developing an indicator to show broker's server time on ninja chart. Any clues? If it is unsupported, please give me some hint about how to proceed at my own risk.

    Thank You

    #2
    Depending on your broker, they may be using native bar stamping. If this is the case, you can their time by using Time[0]

    You can check if your broker is using native or local time stamping on the following link:

    MatthewNinjaTrader Product Management

    Comment


      #3
      I using FXCM as my broker, and I have checked on the help page you provided that FXCM provides native timestamps.

      I am using this statement
      DrawTextFixed("tag1", Time[0].ToString(),TextPosition.TopRight);

      and it is showing the same time as my PC clock.

      Thank you

      Comment


        #4
        Are you sure? I'm testing FXCM and I see a two second difference between the system time and the bar time.

        Try this and let me know your results:

        Code:
        					DrawTextFixed("tag1", "Broker time: " + Time[0].ToString() +
        				"\nSystem: " + DateTime.Now.ToString() ,TextPosition.TopRight);
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ageeholdings, Today, 07:43 AM
        0 responses
        1 view
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X