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, 05-11-2026, 05:56 AM
        0 responses
        28 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        183 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        337 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        261 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X