Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to control a drawing object size?

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

    How to control a drawing object size?

    DrawDot("My dot" + CurrentBar, false, 0, SMA(41)[0] + -4 * TickSize, Color.Yellow);
    I'm adding dots to a Indicator but they appear too big on the chart. How do I make them smaller?
    Thanks

    #2
    Hello Ken,

    Unfortunately there is no supported way of setting the size of drawing objects like this. I recall one work around where DrawText() was used with wingdings font (or similar) as workaround. You can then specify the font size of objects drawn. If you take this approach, you'll have to experiment to find fonts / symbols that work best for you.

    For drawing dots, a simple period in any font may work well for this
    Attached Files
    Last edited by NinjaTrader_RyanM1; 01-03-2011, 04:14 PM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Why not? This doesn't seem like a major obstacle for a good NinjaTrader programmer. And is does seem to be a necessary tool to achieve an Indicator's proper visual result.

      Comment


        #4
        Unfortunately we could not get into the design details, however your suggestion and input has been noted.

        Thanks,

        Comment


          #5
          So....how do I change a font type and size of a text object? Do you have any examples?
          Thanks

          Comment


            #6
            Yes, you can check out the MSDN docs on fonts in C#:
            Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              I'm sorry, I didn't see any code examples for font type and size. Can you point me to or do you have any examples online?
              thanks

              Comment


                #8
                Sure, it's been discussed on these forums several times. Please see the following google search:
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  I concur that it would be really nice to be able to easily change the size of the DrawDot object.

                  Comment


                    #10
                    Thanks Hawk Arps. This suggestion has been inserted into our tracking system with the unique ID # 526
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #11
                      Has there been any progress on this request, as I have the same request/problem.
                      Thank you.

                      Comment


                        #12
                        Thanks for checking in oldhiker, this is still tracked as active enhancement request on our lists, I've just added your vote in as well.

                        Comment


                          #13
                          Thank you for your reply. I will keep an eye open for it.
                          A suggestion is to use a short line that is quite thick, which is confined to a square or rectangle. This is what I will be using in the meantime.

                          Comment


                            #14
                            Hi, is there anything new in this issue ? Can size control of drawing objects expected in Ninja 8?

                            This limitation is mind boggling. Opening it could make wonders in how to improve ways to convey information to the human eye and many people asked for it so it seems. Thanks for considering it again.

                            Comment


                              #15
                              tickling, thanks for your input on this matter as well, I will make sure the vote gets added for consideration. Unfortunately at this time we could not provide an ETA or commitment, but will surely approach the community once feature sets will be released.

                              Comment

                              Latest Posts

                              Collapse

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