Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Minor Bug - AutoScale option of Draw.Text

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

    Minor Bug - AutoScale option of Draw.Text

    NinjaTrader 8.0.7.0. When setting "isAutoScale" to "true", the vertical pixel offset "yPixelOffset" is not taken into account by Draw.Text.

    As a consequence objects drawn with Draw.Text may easily move out of the boundaries of the chart.

    Attached is an example. The lower margin of the panel is set to 10%. The text indicating the trading day uses a pixel offset which is dependent on the selected font size. "isAutoScale" is programmatically set to "true", but the pixel offset is not taken into account by "isAutoScale".
    Attached Files

    #2
    Here is a screenshot that compares NT7 to NT8.

    As you will notice NT7 did take into account the pixel offset, when the AutoScale option for DrawText() was activated. The draw objects are shown inside the selected panel.

    For NT8 the pixel offset has not been taken into account and the draw objects move outside the chart panel.

    The two charts use exactly the same settings for DrawText() / Draw.Text() and the panel properties (offsets).
    Attached Files

    Comment


      #3
      Hello Harry,

      Thank you for posting.

      I will compile a sample and report this to development.

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

      Comment


        #4
        Has this problem been understood and accepted by your developers?

        Comment


          #5
          Hello,

          Thank you for the post.

          This item is currently submitted but unresolved. Once I have further details on this I will post them here.

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

          Comment


            #6
            It is a minor bug, so it should be easy to fix.

            Please submit again, I believe that the issue has been simply forgotten.

            Comment


              #7
              Hello,

              I appreciate your concern, we would only need to submit a bug one time and it has already been submitted. I can assure you it has not been forgotten. Once I have further details I will post back here.

              Please let me know if I may be of further assistance.
              JesseNinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Jesse View Post
                Hello,

                I appreciate your concern, we would only need to submit a bug one time and it has already been submitted. I can assure you it has not been forgotten. Once I have further details I will post back here.

                Please let me know if I may be of further assistance.

                Jesse,

                I did not want to be impolite. Usually bugs get assigned ticket IDs in order to track them. This has not yet received a ticket. Therefore I was unsure whether it has been confirmed as a bug or not.

                I will be patient, of course ...

                Comment


                  #9
                  Hello,

                  I just wanted to post back on this item. Here is a tracking id: 11819

                  Please let me know if I may be of further assistance.
                  JesseNinjaTrader Customer Service

                  Comment


                    #10
                    Jesse,

                    Thank you again.

                    Comment


                      #11
                      As far as I have seen this has not been fixed with NT 8.0.9.0.

                      It is a rather simple bug.

                      In NinjaTrader 7 the Autoscale feature worked correctly and took into account the pixel offset.

                      Is there any hope that the bug will be removed?

                      Comment


                        #12
                        Hello,

                        Thank you for the reply.

                        Yes, you are correct this has not been changed at this point, I don't see that this was added to the changelog, if it does change it will be added there.

                        I reviewed the notes on this item and it seems that development has currently determined to leave this item as is due to changes required to correct its action. They also noted this will be revisited at a later date. For this, I could only suggest checking the help guide in future releases to see if this was revisited.

                        For the time being, if the target value of the text is known you could utilize the OnCalculateMinMax override to specify a custom autoscale range which includes the offset value. https://ninjatrader.com/support/help...lateminmax.htm

                        Please let me know if I may be of further assistance.
                        JesseNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by rdtdale, Today, 01:02 PM
                        0 responses
                        0 views
                        0 likes
                        Last Post rdtdale
                        by rdtdale
                         
                        Started by alifarahani, Today, 09:40 AM
                        3 responses
                        15 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Started by RookieTrader, Today, 09:37 AM
                        4 responses
                        18 views
                        0 likes
                        Last Post RookieTrader  
                        Started by PaulMohn, Today, 12:36 PM
                        0 responses
                        5 views
                        0 likes
                        Last Post PaulMohn  
                        Started by love2code2trade, 04-17-2024, 01:45 PM
                        4 responses
                        40 views
                        0 likes
                        Last Post love2code2trade  
                        Working...
                        X