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 strategist007, Today, 07:51 PM
        0 responses
        2 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,967 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        4 views
        0 likes
        Last Post rbeckmann05  
        Started by rhyminkevin, Today, 04:58 PM
        4 responses
        58 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by iceman2018, Today, 05:07 PM
        0 responses
        6 views
        0 likes
        Last Post iceman2018  
        Working...
        X