I ask because I am working on an indicator and one of the beta testers just reported an odd bug. When they put the indie on a chart, all of the colors have switched their default values to null, and all objects drawn are grey. They tried restarting and that had no effect. The indie works fine for all the other testers.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
bad default settings??
Collapse
X
-
bad default settings??
Is there any known cause for an indicator to have incorrect default settings when applied to a chart?
I ask because I am working on an indicator and one of the beta testers just reported an odd bug. When they put the indie on a chart, all of the colors have switched their default values to null, and all objects drawn are grey. They tried restarting and that had no effect. The indie works fine for all the other testers.Tags: None
-
Hi Antny,
This is usually caused by having a template for that indicator.
To check this look in:
(My) Documents\NinjaTrader 7\templates\Indicator
If you see a template with the name of your indicator here, delete it.
Let me know if that does not resolve the issue.Chelsea B.NinjaTrader Customer Service
-
Have you serialized the colors correctly?Originally posted by Antny View PostIs there any known cause for an indicator to have incorrect default settings when applied to a chart?
I ask because I am working on an indicator and one of the beta testers just reported an odd bug. When they put the indie on a chart, all of the colors have switched their default values to null, and all objects drawn are grey. They tried restarting and that had no effect. The indie works fine for all the other testers.
Comment
-
Hi Antny,
Below is a link to a thread that demonstrates how to properly serialize a color input.
http://www.ninjatrader.com/support/f...ead.php?t=4977
If the chart has no template applied and there is no indicator template as well and the colors are the correct default colors, then it would be likely improperly serialized inputs is the issue.Chelsea B.NinjaTrader Customer Service
Comment
-
Ah ha! I was not aware of theOriginally posted by NinjaTrader_ChelseaB View PostHi Antny,
Below is a link to a thread that demonstrates how to properly serialize a color input.
http://www.ninjatrader.com/support/f...ead.php?t=4977
If the chart has no template applied and there is no indicator template as well and the colors are the correct default colors, then it would be likely improperly serialized inputs is the issue.
andCode:[XmlIgnore()]
segments of code. I am still not able to replicate the issue either way, so I will have to wait for feedback from my testers. Hopefully I will know something tomorrow.Code:[Browsable(false)] public string PaintColorSerialize { get { return NinjaTrader.Gui.Design.SerializableColor.ToString(paintColor); } set { paintColor = NinjaTrader.Gui.Design.SerializableColor.FromString(value); } }Last edited by Antny; 05-29-2014, 03:25 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment