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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X