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

Indicator not in indicators list on chart.

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

    Indicator not in indicators list on chart.

    Yet it is in the scripts edit list box and does compile successfully.
    Any ideas?

    Edit: Log...
    6/18/2008 1:15:09 PM Default Unable to create instance of 'NinjaTrader.Indicator.MarketDepth'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation.

    Edit2: This seems to happen when I try and instantiate classes from a .dll compiled with VS2005, which I have referenced in NT, it happenens even with empty classes.

    Edit3: Yet I can instantiate the classes in the .dll using a C# console project.

    Edit4: VS2005 trace
    The thread '<No Name>' (0xeac) has exited with code 0 (0x0).
    'NinjaTrader.exe' (Managed): Loaded 'C:\Documents and Settings\craig\My Documents\NinjaTrader 6.5\bin\Custom\Tmp\ce3b10e0be69441b9e6ea87e92a73a8 0.dll', Symbols loaded.
    A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in ce3b10e0be69441b9e6ea87e92a73a80.dll
    A first chance exception of type 'System.TypeInitializationException' occurred in ce3b10e0be69441b9e6ea87e92a73a80.dll
    A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
    A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
    2008-06-18 13:41:27:463 ERROR: Unable to create instance of 'NinjaTrader.Indicator.ADL'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation.
    A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
    A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
    2008-06-18 13:41:27:479 ERROR: Unable to create instance of 'NinjaTrader.Indicator.Test'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation.

    Edit 5:
    Here is what happens if I move the invocation into Initialize
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in NinjaTrader.Core.dll
    2008-06-18 13:51:28:632 ERROR: Failed to call method 'Initialize' for indicator 'Test': Could not load file or assembly 'NinjaTraderTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    Last edited by CraigC; 06-17-2008, 07:52 PM.

    #2
    Unfortunately the following link is the extent to which we can support the use of Visual Studio for development: http://www.ninjatrader-support.com/H...ualStudio.html

    Please make sure you are not using the Express version.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      So NT can't use VS2005 complied C#?

      Comment


        #4
        It is technically possible, but it is beyond the level of what we can offer support for.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Davide999, 05-18-2023, 03:55 AM
        4 responses
        556 views
        1 like
        Last Post kcwasher  
        Started by Stanfillirenfro, Today, 07:23 AM
        2 responses
        10 views
        0 likes
        Last Post Stanfillirenfro  
        Started by rexsole, Today, 08:39 AM
        2 responses
        7 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        6 responses
        29 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by gbourque, Today, 06:39 AM
        2 responses
        14 views
        0 likes
        Last Post gbourque  
        Working...
        X