Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AutoScale

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

    AutoScale

    Hi,
    Where to set the AutoScale property of all my drawn objects such as arrows, dots... on the chart to true please. Setting it true explicitly in Initialize does not help. Do i need to set it in OnBarUpdate?
    Thank you.
    Regards, Art.

    #2
    Hi Art,

    This is set per object. All drawing object methods have a method signature with AutoScale parameter available.

    DrawDot(string tag, bool autoScale, int barsAgo, double y, Color color)
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi,
      I'm still having problem with DrawText - if I add true for autoScale it does not compile giving me CS1501 error:

      DrawText("myText" + CurrentBar, true, "SomeText", 0, High[0]-3*ATR(14)[0], Color.Black);

      Thank you very much.
      Last edited by Art09; 04-09-2011, 08:05 PM.

      Comment


        #4
        Art, you'll have to modify your code so it matches one of these DrawText() overloads:
        Code:
        DrawText(string tag, string text, int barsAgo, double y, Color color) 
        DrawText(string tag, bool autoScale, string text, int barsAgo, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity) 
         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)
        Possibly: DrawText("myText"+CurrentBar, "someText", 0, High[0], Color.Black);
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        157 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        91 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        143 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        131 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X