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)
I'm looking for an example on how to call an external dll from Ninjatrader.
Have been looking on this and ninjatraders forum but haven't found an example.
Have been developing indicators in vb.net for some time now and made my own
programs. But using ninjatrader as a front end seems a better path.
Lets say i have an dll that does one thing adding two numbers. MyCalc.dll
The function is AdUp(nbrfirst as double, nbrSecond as double) as double
How can i use the function from the dll in ninjatrader.
Really hope to get some hints and directions to get me started.
Ernesto
Can you help answer these questions from other members on NexusFi?
its pretty easy. copy the dll to the <My Documents>\NinjaTrader 7\bin\Custom\ folder (make sure nt is closed when you do so). make a declaration of the same in the ninjascript. create object and you are set.
on the first run intellisense will not show the same. open any custom indicator/strategy and compile the same. restart NT and it will be fine. see the sample to get an idea.