Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bugs with DrawTextFixed and saving templates with configurable fonts

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

    Bugs with DrawTextFixed and saving templates with configurable fonts

    Hi, I encountered 2 problems (bugs) while using 6.5 beta 4:

    Bug #1: DrawTextFixed does not honor alpha values intended to make the background of the text box that it draws somewhat transparent so that we can still somewhat see the chart behind it.

    Bug #2: Having a configurable font as part of an indicator makes it impossible to save a chart template that includes the indicator. I get a pop-up that says "NinjaTrader has detected a problem and needs to shut down." It took me a while to isolate the reason that this was happening.

    Attached is some code that illustrates these bugs. I hope that you guys can correct these soon.

    Thanks!
    Attached Files

    #2
    Thanks, this post has been referred to development for further review.
    RayNinjaTrader Customer Service

    Comment


      #3
      On a related note: Drawing objects on the chart, such as text and arrows, are drawn on top of the DrawTextFixed box, while price bars are drawn below it. It would be better and more consistent if the DrawTextFixed box was drawn on top of both the price bars and the chart's drawing objects.

      Comment


        #4
        Hi Wizard !

        First, many thanks for the most helpful way to point us to the error(s) !

        1) Problem on save workspace:
        The crash is a bug and will be fixed in the next beta.

        It is not possible to serialize a Font, a Pen or a Color property. Instead, you have to add a [XmlIgnore()] to your Font property, and add a additional property, which saves the Font.

        So it have to look like:

        [Description("Font used for report text.")]
        [XmlIgnore()]
        [Category("Parameters")]
        [Gui.Design.DisplayNameAttribute("Report Font")]
        public Font ReportFont
        {
        get { return ReportFont_; }
        set { ReportFont_ = value; }
        }

        /// <summary>
        /// </summary>
        [Browsable(false)]
        public string ReportFontSerialize
        {
        get { return Gui.Design.SerializableFont.ToString(ReportFont_); }
        set { ReportFont_ = Gui.Design.SerializableFont.FromString(value); }
        }

        2) Alpha value of DrawTextFixed: Please try a value between 1 and 9, as stated in the documentation:


        3) Drawing DrawTextFixed on top of objects: We added this to our list for further development.

        Thanks again for reporting,
        Christian
        ChristianSenior Software Developer

        Comment


          #5
          3) Drawing DrawTextFixed on top of objects: Will be available in the next NT6.5 beta.
          ChristianSenior Software Developer

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          617 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          358 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          561 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          566 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X