Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error reflecting type 'NinjaTrader.NinjaScript.Indicators.FFD2'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • timoting
    replied
    Nice, it works now! Thank you so much. Don't think I could've figured it out. Much appreciated

    Leave a comment:


  • cre8able
    replied
    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

    Leave a comment:


  • timoting
    replied
    Hey, thanks for trying to help. I see there's a bunch of XmlIgnore attributes that were commented out and I tried uncommenting them but I'm still getting the error. Any other suggestions?

    Leave a comment:


  • cre8able
    replied
    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

    Leave a comment:


  • cre8able
    replied
    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;

    Leave a comment:


  • timoting
    replied
    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. Thanks
    Attached Files

    Leave a comment:


  • cre8able
    replied
    now I get it
    thank you

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello cre8able,

    That wouldn't be necessary. It's fine to have a public series, as long as it is using the XmlIgnore attribute.

    The Connection object from post# 9 does not need public as it does not need to be accessible from outside of the class.

    Leave a comment:


  • cre8able
    replied
    thanks Chelsea

    I changed the series to private then created a property to make it public

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello cre8able,

    Do you have public objects?

    Are those all using the XmlIgnore attribute?

    Leave a comment:


  • cre8able
    replied
    I can place the indicator on a chart and it loads fine with no errors. It's only when I try to save a template that I get errors.

    Whatever I'm doing wrong, I'm very consistent. I have 6 indicators with the same problem

    Leave a comment:


  • cre8able
    replied
    I am getting the same error HighTrade was getting. But I couldn't find a "public Connection" statement

    can you point out what I need to change

    thanks
    Attached Files

    Leave a comment:


  • HighTrade
    replied
    I made the connection private and no more errors. thank you .

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello HighTrade,

    The public Connection object is not using the XmlIgnore() attribute.
    This should be a private variable.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello HighTrade,

    I wanted to let you know that I am able to reproduce the behavior, which means something is wrong with the script.

    I haven't yet had a moment to discover the cause yet though.

    However, is this a script you have made or one that you have imported?

    Have you reported this behavior to the vendor or author of the script so that they may correct the script? (Especially as they may still be distributing this script)
    Last edited by NinjaTrader_ChelseaB; 01-09-2019, 03:04 PM.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by PaulMohn, Today, 03:49 AM
0 responses
3 views
0 likes
Last Post PaulMohn  
Started by inanazsocial, Today, 01:15 AM
1 response
7 views
0 likes
Last Post NinjaTrader_Jason  
Started by rocketman7, Today, 02:12 AM
0 responses
10 views
0 likes
Last Post rocketman7  
Started by dustydbayer, Today, 01:59 AM
0 responses
2 views
0 likes
Last Post dustydbayer  
Started by trilliantrader, 04-18-2024, 08:16 AM
5 responses
23 views
0 likes
Last Post trilliantrader  
Working...
X