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 Jonker, Today, 01:19 PM
        0 responses
        1 view
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by futtrader, Today, 01:16 PM
        0 responses
        5 views
        0 likes
        Last Post futtrader  
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,791 views
        0 likes
        Last Post aligator  
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        844 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,294 views
        1 like
        Last Post jgualdronc  
        Working...
        X