Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Autoscale is Grayed Out

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

    Autoscale is Grayed Out

    I have a little glitch that I have never ran into before.

    If you look at the attached picture, the chart on the right has the black arrows at/near the Zero Line and the red arrows at the top that are bracketing price.

    I used the exact same code to program the black arrows (did a 'cut and paste'), but they print at/near the Zero Line, instead of bracketing the high/low of price. Then I noticed in the Indicator Box, that the Autoscale Option is gray for the new indicator with the black arrows.

    Any advice?
    Attached Files

    #2
    Hello phoenix,
    If the indicator is not overlayed on the price pane then the AutoScale property will be disabled. Since it is the only indicator in the panel (since it is on a separate pane) autoscale must be true and cant be configurable.

    To resolve the scenario you are witnessing please make sure to set the autoscale property of the Draw object to false.

    For example if you are drawing a text object using the below overload then please make sure to set the autoscale to false.
    DrawText(string tag, bool autoScale, string text, DateTime time, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
    Last edited by NinjaTrader_Joydeep; 10-17-2012, 01:24 PM.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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