Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Seconds Countdown timer??

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

    Seconds Countdown timer??

    Is it possible to post or let me know how to construct a seconds countdown timer??
    I have looked at the code of the TickCountdown timer but can't figure it out.

    Thanks in advance

    Nik

    #2
    imported post

    I can give you some ideas but you will still have to code it.

    - You could write an indicator that uses the Timer Class to count down time and then plot the value via the Plot() method, like the TickCounter

    - You coud measure the time stamps of bars as they come in to see how much time is left and override the Plot() method

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      timestamp?

      Where do those timestamps come in? MarketData, Bars?

      Comment


        #4
        You would have to take the time of the bar (closing time of bar) and the current actual time and do a difference. This is not 100% reliable since if your feed is off (delayed) the bar time vs actual time will be off.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X