NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical NinjaTrader 6.5 Archive > Historical NinjaTrader 6.5 Beta Threads

 
 
Thread Tools Display Modes
Old 12-04-2007, 10:17 AM   #1
Wizard
Junior Member
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default 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
File Type: cs _NT_Bug_1_2.cs (1.5 KB, 8 views)
Wizard is offline  
Old 12-04-2007, 10:23 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Thanks, this post has been referred to development for further review.
NinjaTrader_Ray is offline  
Old 12-04-2007, 12:49 PM   #3
Wizard
Junior Member
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
Wizard is offline  
Old 12-05-2007, 02:29 AM   #4
NinjaTrader_Christian
NinjaTrader Development
 
NinjaTrader_Christian's Avatar
 
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
Default

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:
http://www.ninjatrader-support.com/H.../DrawText.html

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

Thanks again for reporting,
Christian
NinjaTrader_Christian is offline  
Old 12-12-2007, 07:57 AM   #5
NinjaTrader_Christian
NinjaTrader Development
 
NinjaTrader_Christian's Avatar
 
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
Default

3) Drawing DrawTextFixed on top of objects: Will be available in the next NT6.5 beta.
NinjaTrader_Christian is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configurable Daily Session Start/End times? Pivots? Drew Historical NinjaTrader 6.5 Beta Threads 3 12-03-2007 07:03 AM
Time and Sales -Larger fonts randyjb Suggestions And Feedback 3 09-26-2007 04:11 AM
Bugs? MAX Automated Trading 5 01-02-2007 06:13 AM
Templates and Indicators guym Indicator Development 7 12-02-2006 04:03 AM
Strategies Templates underground Miscellaneous Support 5 01-10-2006 08:15 AM


All times are GMT -6. The time now is 05:40 AM.