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

Bar Timer Code

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

    Bar Timer Code

    Is there a way to "bump" the bar timer "Time remaining - 00:00" text over to the left just a bit so that if the market is making new lows on the chart the bar timer is not in the way? Yes I can move the bars over to the left but then the bars are about 3 inches or so from the price graph and that is what I do now.

    If there is a simple "edit" to do this in the code I would greatly appreciate it.

    Thanks

    Terrangbil

    #2
    Terrangbil,

    This would require some custom programming to achieve. You can play with it in the Plot method of the indicator.

    What you can also try is just to scrunch the bars vertical range a bit so it doesn't go down to where the text is.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply Josh. I will check in to the plot method. I do squeeze the bars vertically when I have to.

      Terrangbil

      Comment


        #4
        The simple fix

        Josh, I went to the text string in the code that says "Time remaining -00:-00:-00" and thought that if I deleted the "time remaining" I could at least shorten the whole display.

        The funny thing is when I deleted the time remaining text the whole display bumped to the far right to the degree that I could not even see the timer yet I could still see the "Time remaining" text.

        Logic dictates that if I remove text on the left of the string and it bumps it right, then if I add to the left of the string it would bump it left. I added 45 spaces between the " and the Time remaining and it moved the entire display over perfectly. Want more space, add more spaces to the left, less space, add fewer. All in all a simple fix.

        Thanks again,

        Terrangbil

        Comment


          #5
          Glad you got it working the way you would like.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Range Bar Timer

            Is there a way to modify bar timer to show the time that has elapsed when a range bar opened. i.e. measure the time from bar open until the current time, and possible have an option to keep that history.

            Comment


              #7
              Hello,

              You would need to program that yourself.
              DenNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by guillembm, Yesterday, 11:25 AM
              2 responses
              9 views
              0 likes
              Last Post guillembm  
              Started by junkone, 04-21-2024, 07:17 AM
              9 responses
              68 views
              0 likes
              Last Post jeronymite  
              Started by trilliantrader, 04-18-2024, 08:16 AM
              4 responses
              20 views
              0 likes
              Last Post trilliantrader  
              Started by mgco4you, Yesterday, 09:46 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by wzgy0920, Yesterday, 09:53 PM
              0 responses
              10 views
              0 likes
              Last Post wzgy0920  
              Working...
              X