Thank you
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator doesnt get saved in template
Collapse
X
-
Hello tkaboris,
Thank you for your post.
Is this an indicator you developed or was it imported from a third party? When you open NinjaTrader and notice that the indicator did not load, are there any error messages on the Log tab of the Control Center? If so, what do the errors report?
I look forward to your reply.
-
Hello tkaboris,
Thank you for your reply.
I suspect that a previous version of the indicator is saved in the template rather than the updated version. Please open NinjaTrader and reinsert the indicator as you have been doing, and then re-save the template with the new instance of the indicator added. Then, as a test, shut down and relaunch NinjaTrader to see if the indicator loads in the template without any errors.
Please let me know if I may be of further assistance.
Comment
-
Hello tkaboris,
Thank you for your reply.
The error "There was an error reflecting type: ____" is sometimes related to objects that are public and do not use the XmlIgnore() attribute. I see this is the case with the four public Series<FVG> cs, cr, ls, and lr. As described in this thread, you can add the XmlIgnore() attribute so that the indicator saves properly in templates and workspaces:
Hi , I tried to save workspace and got the following error: Could not save indicator 'FFD2:' There was an error reflecting type 'NinjaTrader.NinjaScript.Indica
Otherwise, you could change them to private instead of public.
I also see that you have some user defined parameter types (enums). It is a strongly suggested best practice to define the enums outside of the class in a custom namespace as demonstrated in the following sample:
Please let us know if we may be of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
600 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
Comment