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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X