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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        570 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X