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 Tim-c, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        2 views
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,770 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        31 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        945 views
        0 likes
        Last Post spwizard  
        Working...
        X