Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Autoscale problem with draw objects

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

    Autoscale problem with draw objects

    I am having issues with autoscaling not working in the following scenario:

    Instrument is set to autoscale = false
    Indicator set to autoscale = true
    Indicator uses drawing objects only (i.e. DrawDot())

    In this case, the scale does not get set at all, the chart data is not displayed, and the scale is left at 0 - .25.

    If I then add another indicator that uses a plot (i.e. Bollinger) and set it to autoscale, then the scale is set correctly and the data is displayed as expected.

    The problem seems to be that indicator I am trying to use does not use a plot, and is depending on the draw objects to set the scale, but NT does not seem to be handling this case.

    Simple test is to just draw a dot on the high and low of each bar.

    Update: It also does not work if there is a dummy plot added that is never set.
    Last edited by aslane; 01-24-2010, 10:25 PM.

    #2
    Thanks Aslane,

    You are right in that the scale is dependant on the plot and since the indicator does not use a plot, NT does not roll over to any drawn objects to calcualte the min/max for the scale. Will look into to see what can be done.
    RayNinjaTrader Customer Service

    Comment


      #3
      Hi Aslane !

      This is a bug, though the indicator has no plot, the y range should include the objects drawn from indicator, if the AutoScale property of the objects is set to true.

      This bug will be fixed with the next update of NinjaTrader. Thanks for reporting !

      Kind regards,
      Christian
      ChristianSenior Software Developer

      Comment


        #4
        Thanks for looking into!

        Comment


          #5
          This appears to be working in B7. Thanks.

          Comment


            #6
            While this is generally working in B7, I found on more item not working.

            Horizontal lines are not included in the algorithm with other drawing objects. So if DrawHorizontalLine() is called with autoscale=true, that object is not included in the autoscale algorithm.

            Same as original issue in that the Instrument has autoscale=false, while the ind creating the horizontal line is set to autoscale=true.

            Comment


              #7
              Will check into. Thx.
              RayNinjaTrader Customer Service

              Comment


                #8
                Hi aslane !

                Thanks for reporting, this bug will be fixed with the next update of NinjaTrader.

                Kind regards,
                Christian
                ChristianSenior Software Developer

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                605 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                351 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X