Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar Timer help

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

    Bar Timer help

    What code do I have to modify in the Bar Timer to disable the error message "Bar timer only works on intraday time based intervals" when I switch my chart to other types? I would also like to increase the font size. Thanks.
    Also how would I remove other error messages just in case, like "bar timer is waiting for realtime data before starting."
    Last edited by augustfay; 04-11-2021, 08:59 PM.

    #2
    Hello augustfay,

    Because the bar timer only works with intra-day time based bar types and doesn't work with tick based or day or larger bar types.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello augustfay,

      Because the bar timer only works with intra-day time based bar types and doesn't work with tick based or day or larger bar types.
      Thanks Chelsea, please reread my question. I'm aware of that, that is the reason I want to disable the error message, because I use both time and tick charts and I don't want to have an error message when I switch, but I don't want to have to take the indicator off the chart.

      Comment


        #4
        Hello augustfay,

        The Draw.TextFixed() on line 77 with the NinjaTrader.Custom.Resource.BarTimerTimeBasedError is what is drawing the text with the time based error.

        The SimpleFont input is where the font and font size are specified.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you Chelsea
          I got the error message sorted out but I'm having a hard time with the font size. I don't see any line of code that says SimpleFont, is there an easy way to change the font size for the entire indicator? It is much too small on my screen and I am having trouble seeing the numbers.

          Comment


            #6
            Hello augustfay,

            From the help guide:
            "Draw.TextFixed(NinjaScriptBase owner, string tag, string text, TextPosition textPosition, Brush textBrush, SimpleFont font, Brush outlineBrush, Brush areaBrush, int areaOpacity)"

            This is currently ChartControl.Properties.LabelFont on line 77.

            You would supply your own SimpleFont object, using the int size parameter. Are you finding the example in the help guide is insufficient?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              I'm just not experienced at coding at all... the language is hard for me to follow and I don't know what to do. I meant I don't see simplefont in the ninjascript where I would assume I'd need to change something. I was hoping this would be as simple as directing me to a line in the code which I could edit but I suppose it is not that simple.

              Comment


                #8
                I see SFT-1256 was created in 2018 to change the font size in this indicator and that this was a standard option in the NT7 bar timer. I don't understand how something this simple isn't a default parameter in the options.
                Some people are not tech savvy and have bad eyesight. This would take someone at NinjaTrader 30 seconds to accomplish.

                Comment


                  #9
                  Hello augustfay,

                  I will add your vote to SFT-1256.

                  Please note, we receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing, so we cannot offer an ETA or promise of fulfillment.

                  When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

                  Release Notes - https://ninjatrader.com/support/help...ease_notes.htm



                  You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Thanks I figured it out.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    648 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    369 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    108 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    572 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    574 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X