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!
See more
See less

Partner 728x90

Collapse

Erroy by saving a MA-Template

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

    Erroy by saving a MA-Template

    The following error is written into the tracefile when I try to save
    a MarketAnalyzer Template.

    with the following column: NinjaTrader.MarketAnalyzer.TradeEscort

    this is a self coded description column

    The strange thing is, that I have done that already by 100times with the same component and suddenly I'm getting this error

    does anyone know the problem?



    2009-12-20 15:54:55:125 in OnUnhandledThreadException
    2009-12-20 15:54:55:125 ********* exception trapped *********
    2009-12-20 15:54:55:125 Fehler beim Reflektieren des Typs 'NinjaTrader.MarketAnalyzer.TradeEscort'.
    2009-12-20 15:54:55:125 bei System.Xml.Serialization.XmlReflectionImporter.Imp ortTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel)
    bei System.Xml.Serialization.XmlReflectionImporter.Imp ortElement(TypeModel model, XmlRootAttribute root, String defaultNamespace)
    bei System.Xml.Serialization.XmlReflectionImporter.Imp ortTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)
    bei System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
    bei System.Xml.Serialization.XmlSerializer..ctor(Type type)
    bei NinjaTrader.Cbi.XmlSerializerDictionary.get_Item(T ype type)
    bei NinjaTrader.Cbi.Serializer.Serialize()
    bei NinjaTrader.MarketAnalyzer.MarketAnalyzerControl.S aveToXml(XmlDocument document, XmlElement element, Boolean asTemplate)
    bei NinjaTrader.MarketAnalyzer.TemplateForm.bntOk_Clic k(Object sender, EventArgs e)
    bei System.Windows.Forms.Control.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
    bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    bei System.Windows.Forms.Control.WndProc(Message& m)
    bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
    bei System.Windows.Forms.Button.WndProc(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    .....

    By opening the MarketAnalyzer this Column is also missing.
    In the trace file I also found the following error:

    2009-12-20 16:04:45:828 ERROR: Failed to restore Market Analyzer column 'NinjaTrader.MarketAnalyzer.TradeEscort'. 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.


    ... When I add this column in the MarketAnalyzer it works fine - storing the template or storing the workspace causes the problem again.

    But I'm using this column already since month's an I never had problems.
    Last edited by TheChingachgook; 12-20-2009, 11:09 AM.

    #2
    Hello,

    I am sorry, the custom coded part is beyond our level of support.
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ben View Post
      Hello,

      I am sorry, the custom coded part is beyond our level of support.
      Hi Ben

      I don't understand your answer ...
      what is the difference to a custom coded indicator or strategy ?

      I only would need a hint what this error message means and how I can fix it.

      I'm in the process to become a NinjaTrader partner with a 3rd-party add on within the next weeks and this error would prevent this intention and this solution is a bit more complex than a solution for privat use only.

      So I really would be happy if you could help me.

      many thanks for your cooperation
      Last edited by TheChingachgook; 12-20-2009, 02:23 PM.

      Comment


        #4
        Hello,

        What do you mean by custom coded the description column. I've never heard of someone doing that so I suspect that this is beyond my personal level of understanding. I will have someone take a look at this on Monday. Sorry, I just don't know the answer because I haven't been train this aspect...because its beyond our level of support for normal users.
        DenNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ben View Post
          Hello,

          What do you mean by custom coded the description column. I've never heard of someone doing that so I suspect that this is beyond my personal level of understanding. I will have someone take a look at this on Monday. Sorry, I just don't know the answer because I haven't been train this aspect...because its beyond our level of support for normal users.

          Hi Ben

          I've found the problem.

          With a DescriptionColumn I meant a self coded MarketAnalyzer-Column. This term I've found somewhere in the forum and therefore thought it's in common understanding of the support members ... sorry for that confusion.


          The solution is, that the XmlReflectionImporter.ImportTypeMapping has a problem by passing an object into a constructor, but the compiler and the executable don't regconize a problem with that. So it seems the ReflectionImporter cannot dissolve the API when an object is passed into the constructor.

          Thanks for your good will

          regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ETFVoyageur, Today, 05:50 AM
          0 responses
          4 views
          0 likes
          Last Post ETFVoyageur  
          Started by DawnTreader, 05-08-2024, 05:58 PM
          17 responses
          63 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ttrader23, 05-08-2024, 09:04 AM
          10 responses
          48 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by agclub, 04-21-2024, 08:57 PM
          6 responses
          41 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by thumper57, 05-11-2024, 04:30 PM
          9 responses
          28 views
          0 likes
          Last Post thumper57  
          Working...
          X