Announcement

Collapse
No announcement yet.

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, 06: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 caacapital, Today, 10:10 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by DiverG20, Today, 10:23 AM
        0 responses
        21 views
        0 likes
        Last Post DiverG20  
        Started by SuneSorgenfrei, Today, 09:29 AM
        0 responses
        21 views
        0 likes
        Last Post SuneSorgenfrei  
        Started by dodoei, Today, 07:24 AM
        0 responses
        14 views
        0 likes
        Last Post dodoei
        by dodoei
         
        Started by thecashguys, Today, 06:13 AM
        0 responses
        13 views
        0 likes
        Last Post thecashguys  
        Working...
        X