Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    57 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    19 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    9 views
    0 likes
    Last Post cre8able  
    Working...
    X