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
Every ninja update breaks indicator template saving
Collapse
X
-
Every ninja update breaks indicator template saving
Every time Ninja releases an update it breaks template saving for my indicators. This has only been happening the last 3 or 4 updates. A recompile fixes this issue, but this is starting to annoy my customers that they need to reinstall the indicators compiled on the latest ninja version every time. What is going on? The error that shows is "Unhandled exeption: There was an error generating the XML document." This is very annoying. Again, nothing but a recompile on the latest ninja version is done and the problem is solved. Absolutely zero lines of code have been changed so it is not a code problem.Tags: None
-
Hello zextra,
Do you have a example which can generate this error after updating that we can test? We have the prior installer listed on the main download page so this is something that you can test to locate what syntax is required to see that. If you have an example of the properties where that happens I would be happy to take a look into that and report what I can.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
-
Hello zextra,
As we don't have the details surrounding what is breaking with your script this question really could not be answered. TextAlignment is not the same as TextPosition however they are both enums, perhaps you have used it in an incorrect way?
We would need to see an example of what code is failing to further this question or to know if there would be any expectations surrounding what you are trying to do. I would still suggest to test for the error by installing the prior release to re create the situation you see the error. This would help you to isolate what code is needed to see the problem so we can figure out a solution going forward.
Please let me know if I may be of additional assistance.
JesseNinjaTrader Customer Service
Comment
-
Look Jesse, this issue only started happening a few releases ago and none of my code has changed. Now after every NinjaTrader update the templates break until the indicators are recompiled on the latest version of Ninja. Half a year ago this wasn't a problem at all and templates were not breaking. None of the code has changed since then. You cannot say the I am using TestAlignment incorrectly. I'm pretty sure Ninja is broken. Why should Text Alignment break templates in the first place?? Its pretty straightforward, I have
// Text alignment
TextAlignment sa = TextAlignment.Center;
Then it is used with draw
Text text;
text = Draw.Text(this, textname, false, texttext, x, ypos, yoff, c, textFont, sa, t, t, 0);
Why does Ninja always blame the programmer for a broken platform? I am getting tired of Ninja issues all the time for stuff I didn't do, and then getting blamed that I am doing something incorrectly...
Regards.
Comment
-
Hello zextra,
Are you able to reproduce this behavior saving a template with a chart that has only NinjaTrader indicators on it (like the SMA) and no custom indicators?
This would let us know the issue is with the platform and not with the script. If there is an issue with the platform and we are able to reproduce, we will report the bug to our development.
If the issue is with the script, we are attempting to help you correct the error.
The error message is saying the script has a property that needs to be properly serialized or ignored from xml with the [XmlIgnore()] attribute.
Chelsea B.NinjaTrader Customer Service
Comment
-
It sounds like there is confusion. I will attempt to clarify. How can it be an error with my code if once recompiled on the newer version of NinjaTrader the template saving resumes working?
Here's what happened
1. Template saving / loading is working on 8.0.18.1 with my indicators
2. Update to latest version of NinjaTrader 8.0.19.0
3. Template saving is broken giving error "Unhandled exeption: There was an error generating the XML document."
4. Recompile indicators on latest NinjaTrader 8 8.0.19.0
5. Template saving / loading is working once again
I hope this makes it clear as to what is going on. ZERO lines of code are changed in the process. It cannot be an error with the script if recompiling the indicators is what solves the issue. This problem has been occurring for the past few releases and having to recompile the indicators to fix the templates breaking. Have you guys been changing some enums every version? Is this why recompilation has been necessary?
Please read Zapzap's post https://ninjatrader.com/support/foru...26#post1073326 in this thread as he is having the same issue.
Last edited by zextra; 10-09-2019, 11:20 PM.
Comment
-
Most of the code is commercial and proprietary. I am getting frustrated as this is NOT a code problem if a recompilation is what fixes the issue. Can you just tell us if some enums keep breaking between NinjaTrader releases, and why. And if this will continue with future releases. Why can't you guys just answer the question that was asked. ARE THE ENUMS BREAKING BETWEEN VERSIONS?
Comment
-
Hello zextra,
I am getting frustrated as this is NOT a code problem if a recompilation is what fixes the issue.
Why does Ninja always blame the programmer for a broken platform? I am getting tired of Ninja issues all the time for stuff I didn't do, and then getting blamed that I am doing something incorrectly...
Why can't you guys just answer the question that was asked. ARE THE ENUMS BREAKING BETWEEN VERSIONS?
Please let me know if I may be of additional assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Johndc, Today, 04:39 AM
|
0 responses
2 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
Comment