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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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
-
Originally 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.
Code:[XmlIgnore()]
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 Davide999, 05-18-2023, 03:55 AM
|
4 responses
554 views
1 like
|
Last Post
by kcwasher
Today, 09:08 AM
|
||
Started by Stanfillirenfro, Today, 07:23 AM
|
2 responses
9 views
0 likes
|
Last Post Today, 09:06 AM | ||
Started by rexsole, Today, 08:39 AM
|
2 responses
6 views
0 likes
|
Last Post Today, 09:06 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
6 responses
29 views
0 likes
|
Last Post Today, 08:55 AM | ||
Started by gbourque, Today, 06:39 AM
|
2 responses
14 views
0 likes
|
Last Post
by gbourque
Today, 07:05 AM
|
Comment