thank you
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
error reflecting type 'NinjaTrader.NinjaScript.Indicators.FFD2'
Collapse
X
-
Hi, sorry to hijack this thread but I'm having the same problem with an indicator I found on the internet. I tried to contact the creator of the indicator but he never replied me. I see the Xmllgnore attribute being mentioned but I have no idea what that means. I do see that throughout the code though. I'm probably in way over my head since I don't know programming but any help to push me in the right direction would be much appreciated. ThanksAttached Files
Comment
-
hey timoting. I did get help to solve it.
below is the code at the top of the indicator rightbelow namespace
the series I wanted to make public are shown here. But if you put the [XmlIgnore] statement in front of the declaration then it will save properly in a template. from what I could tell, its only when you save a template that it uses (and ignores) anything with that statement. I assume templates are saved as Xml files.
so your indicator works either way, but can save in a template without XmlIgnore. just put it in front of your series declarations
public class tdOBVM : Indicator
{
public override string DisplayName {get { return this.Name;}} // Hide Paramaters on display
[XmlIgnore] public Series<int> OBVUpDown;
[XmlIgnore] public Series<int> OBVAboveSignal;
Comment
-
I'm nowhere near ass expert as the rest of the people on this forum, only on post 25. But looking at the properties code starting around line 325, the XmlIgnore attribute is commented out. I suggest removing the // in front of XmlIgnore and try recompiling
Comment
-
try this one. in addition to uncommenting all the places that had XmlIgnore there were a few more public variables that needed it added.
I tested it and didn't get the error. hopefully this will work for you.Attached Files
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,606 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
13 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment