Exposing indicator values that are not plots
https://ninjatrader.com/support/help...ng_indicator_v alues_that.htm
I have leverage the example to create two Series:
private Series<int> myValue1Indication;
private Series<int> myValue2Indication;
Additionally, I have the properties like so:
[Browsable(false)]
[XmlIgnore]
public Series<int> MyValue1Indication{
get { return myValue1Indication; }
}
[Browsable(false)]
[XmlIgnore]
public Series<int> MyValue2Indication{
get { return myValue2Indication; }
}
I load the indicator on the chart and it is working well. However, when I go to save a Chart Template, I'm getting this error:
Could not save indicator 'Candle Body Momentum v03:' There was an error generating the XML document.
Looking at the log, I'm only getting this:
2022-09-13 20:51:12:274|3|16|Failed to restore Indicator 'Unknown'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
2022-09-13 20:51:12:284|3|16|Failed to restore Indicator 'Unknown'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
2022-09-13 22:36:09:147|3|4|Could not save indicator 'Indicator1:' There was an error generating the XML document.
2022-09-13 22:36:09:148|3|4|Could not save indicator 'Indicator2:' There was an error generating the XML document.
2022-09-13 22:36:54:177|3|4|Could not save indicator 'Indicator1:' There was an error generating the XML document.
2022-09-13 22:36:54:181|3|4|Could not save indicator 'Indicator2:' There was an error generating the XML document.
2022-09-13 22:42:36:951|3|4|Could not save indicator 'Indicator1:' There was an error generating the XML document.
2022-09-13 22:58:43:753|3|4|Could not save indicator 'Indicator1:' There was an error generating the XML document.
The restore errors are from the template loading. The save errors are from trying to save it again.
I'm working on two custom indicators but only worried about one. Once I get that fixed, then I'm sure I can fix the other.
I get the same errors when saving to a new template.
Any ides on where to troubleshoot? I'd rather not post the code.
Thanks,
Matt

Comment