Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
These errors are too generic, it's impossible to debug without the sources and the .dll.
If your goal is to upload Ninja data to your own DB from an indicator it might be quicker to write something which is reading the Ninja SQLCE database...
Success requires no deodorant! (Sun Tzu)
Can you help answer these questions from other members on NexusFi?
Thank you rleplae for the great tutorial! I searched online for hours before I found your post from 2014! Just what I was looking for. Two questions I hope you're still around to help with
1. Is there anyway to use a DLL without putting it in C:/Documents/NinjaTrader 7/bin/Custom? I want my ninjascript to run a function without making it "part" of ninjatrader.
2. Lets say that in your example, ClassLibraryBMT was written in C++. Would it still be possible to use as you outline? Maybe with something involving interopservices?
1. What is the type of service your module needs to do deliver ?
I have built for example algo services that i call from an indicator container through a JSON call, then service then delivers a chunk of data, so inside NT i can use that data to draw on the screen. Another example is call that back-end where i pass orderIDs and the back-end is then managing the stops in an intelligent way or rejects the order simply if it does not pass the rules of my risk engine
2. Yes that is possible, you can have external libraries that are not c# and not inside the NT directory, and example is this piece of code :
I have a lot of computational stuff I've done in C++, and want to use the functions in NT.
For simplicity, let's pretend ClassLibraryBMT.dll was in C++ and has the path 'C:\ClassLibraryBMT.dll'. If I simply wanted to call BMTmethod() in my NT script without re-writing it in C# and without copying to the /Bin/Custom folder, how would I do that?