Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT data surveillance

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

    NT data surveillance

    Hello,

    it occurs that NT is stucking and bars do not continue to move. This occurs on different pc and with NT8 and NT7.

    So I want to add a little "indicator" that shows me if data is updating, or last bar is at "current time".

    Is this possible? I have no idea now how to do. But I´m sure it will be possible (eg like "if time of bar=pc time..."?? or time of close of last 1-min bar is >= current pc time- 2 tmin...??)

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thanks for your post.

    I would suggest a better way is to observe the movement the candles on the chart themselves as well as observe the Bid/ask data in the chart trader (shown below the chart trader and labeled A: and B. You can also observe a time and sales window for its streaming movement and observe a market analyzer with the ask and bid and last columns.

    If you wanted to create an on chart indicator, understand that it would update with an OnBarUpdate() so if your data is not coming in you would not get an OnBarUpdate(). If you are determined to create an indicator you could create one that adds a 1 tick series and then compare the timestamp of the last tick to the DateTime.Now() of your PC and then use whatever logic you wish to identify when something isn't meeting your needs but in my opinion, this would not be meaningful given the possible lack of OnbarUpdate() when something is wrong.

    Perhaps other community members have encountered/considered this before and have other thoughts or inputs.

    Comment


      #3
      Hello Paul,

      thank you for your reply. Idea with TS is ok of course but as I have many charts I can not "read" the numbers, I need some tool with backcoloring.
      The 2nd idea is what I´m thinking but I dont know how to do. Even when working with NT for 10 years now I always have issues with time.
      Can you please give me a snippet about this?

      Thank you!
      Tony

      Comment


        #4
        Hello tonynt,

        Thanks for your reply.

        As you know we do not provide coding services. We provide assistance with ninjascript, the elements of time are not Ninjascript methods but are C# .net properties and methods. I will link you to several references to help you to work with time properties:


        Here is a detailed tutorial on C# DateTime class and how to work with dates and times using C#.

        The DateTime class in C# is used to represent date and time in C#.The following are some of the properties of DateTime in C# −Sr.No


        If you do an internet search I am sure you will find several other examples/samples of working with dateTime and timespans.

        If you would like this created for you we can certainly provide references to 3rd party coders.

        As a suggestion, you might want to add a 1 tick series and then subtract the timestamp of the tick bar to the current PC clock which is DateTime.Now.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        85 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X