![]() |
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
|
|||||||
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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! |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Thanks, this post has been referred to development for further review.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Development
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
|
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
Christian
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
NinjaTrader Development
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
|
3) Drawing DrawTextFixed on top of objects: Will be available in the next NT6.5 beta.
Christian
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |