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

Timer

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

    Timer

    Looking for a script that will display a second timer on my volume chart that tracks time between bars. Any suggestions? Thanks!

    #2
    Hello,

    Thank you for the post.

    I am not certain of a specific item but was able to locate a few you could look at http://ninjatrader.com/support/forum...yid=91&doit=Go

    I am sure there are other items available as well because the code is available for these items, they could be used as a starting point if you wanted to expand on the idea further.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by pman777 View Post
      Looking for a script that will display a second timer on my volume chart that tracks time between bars. Any suggestions? Thanks!
      Code:
      double secondsElapsed = (Time[0] - Time[1]).TotalSeconds;

      Comment


        #4
        thanks Koganam, however what I'm looking for is more of a real-time "second" counter that I can display on my chart while in a bar vs. simply calculating the elapsed time between bars.

        Comment


          #5
          Originally posted by pman777 View Post
          thanks Koganam, however what I'm looking for is more of a real-time "second" counter that I can display on my chart while in a bar vs. simply calculating the elapsed time between bars.
          I am a bit confused. What is the difference? If you have COBC=false, then what I gave you will be the time for which the bar has been building. If you want to show it as text on the chart, use DrawTextFixed().

          What am I not understanding?
          Last edited by koganam; 04-19-2017, 07:20 PM. Reason: Corrected punctuation.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by terofs, Yesterday, 04:18 PM
          1 response
          21 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by CommonWhale, Today, 09:55 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Gerik, Today, 09:40 AM
          2 responses
          7 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Started by RookieTrader, Today, 09:37 AM
          2 responses
          12 views
          0 likes
          Last Post RookieTrader  
          Started by alifarahani, Today, 09:40 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X