NexusFi: Find Your Edge


Home Menu

 





Integrating existing DLL in NT7 indi


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one martinp with 6 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 NinjaTrader with 1 posts (0 thanks)
    1. trending_up 4,177 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 8 posts
    2. attach_file 3 attachments




 
Search this Thread

Integrating existing DLL in NT7 indi

  #1 (permalink)
martinp
Cologne
 
Posts: 6 since Feb 2011
Thanks Given: 0
Thanks Received: 0

hi,

I try to develop an indicator for NT. The indicator uses a couple of existing classes already build as an assembly (DLL) in Visual Studio. This assembly needs to be used with a couple of additional DLL for other reasons.

When trying to use any element of this assembly everything is fine in Visual Studio - adaption of the custom project as described in this forum - and compiles as well perfectly in NT7.

But when trying to add an indi to an open chart i get the following errormessage:
"Unable to retrieve typeinfos from assembly "NinjaTrader.Custom": ..."

Has anyone a hint for me?

Thx
Martin

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #3 (permalink)
martinp
Cologne
 
Posts: 6 since Feb 2011
Thanks Given: 0
Thanks Received: 0


additional info:

now, after I programmed my first custom indi with VS not working with the external DLL I get another bad result.

After shutting NT7 down an restarting I only get the error-screen:



martin

Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,236
Thanks Received: 101,661

You checked your trace file? I'm guessing you added any needed references to NT?

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
martinp
Cologne
 
Posts: 6 since Feb 2011
Thanks Given: 0
Thanks Received: 0

Hallo Mike,

thanks for your advice. I've to confess, that I'm a newbee with NT. With C# my experiences are not that bad.

But to your advice:
I suppose with tracefile you think of the NT logfile in the lob directory. There I find:

Quoting 
13.02.2011 18:34:19|0|4|Unable to retrieve type infos from assembly 'NinjaTrader.Custom': System.Reflection.ReflectionTypeLoadException: Mindestens ein Typ in der Assembly kann nicht geladen werden. Rufen Sie die LoaderExceptions-Eigenschaft ab, wenn Sie weitere Informationen benötigen.
bei System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
bei System.Reflection.Assembly.GetTypes()
bei NinjaTrader.Cbi.AssemblyDictionary.GetTypes(Type superClass)
13.02.2011 18:34:21|1|4|Your hidden '_Workspaces' workspace is corrupted and could not be restored. A new '_Workspaces' workspace has been created however you have unfortunately lost your prior settings for this workspace.
13.02.2011 18:34:21|1|4|Order entry hot keys disabled
13.02.2011 18:34:21|1|2|Optimized CPU performance enabled
13.02.2011 18:34:21|1|4|Automated trading disabled

I suppose it's true, that I did not include one of the necessary DLL files in the script.

But what can I do at the moment? NT does not start.
And is there a way to find out perhaps what types are not found bei NT when loading the script? It would give me a hint concerning the missing DLL.

Thx
Martin

Reply With Quote
  #6 (permalink)
martinp
Cologne
 
Posts: 6 since Feb 2011
Thanks Given: 0
Thanks Received: 0

Tracefile found as well

Martin

Attached Files
Elite Membership required to download: trace.20110215.txt
Reply With Quote
  #7 (permalink)
martinp
Cologne
 
Posts: 6 since Feb 2011
Thanks Given: 0
Thanks Received: 0

tracefile found as well

martin

Attached Files
Elite Membership required to download: trace.20110215.txt
Reply With Quote
  #8 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,714 since May 2010
Thanks Given: 203
Thanks Received: 2,686

Martin,
Your custom script likely is causing the problem, just a guess. Please route this issue to our support and we can help you there. Provide me with your support ticket # and I will be sure someone gets on top of this right away.

Follow me on Twitter Reply With Quote
  #9 (permalink)
martinp
Cologne
 
Posts: 6 since Feb 2011
Thanks Given: 0
Thanks Received: 0

Hi NinjaTrader,
a kind and competent member of your support staff already helped me in fixing my secondary problem, i.e. NT starts again, and I know all I have to do is to delete the problematic indi-cs from the custom project. NT does not look for the missing DLL anymore.

With my original problem I'm still at the starting point. How to find out which are the relevant DLL to integrate.

Thanks for the offer and thanks for the fast help

Martin

Reply With Quote




Last Updated on February 15, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts