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)
New to the forum but I've used Ninjatrader 8 for about a year now and have some strategies/indicators.
I was looking online for solutions to connect Accord.NET to ninjatrader 8 so I can implement its functions to trading. I've previously done some machine learning on Matlab, not with C#. I I am new to visual studio and I am encountering some roadblocks.
I was hoping someone could help me troubleshoot my issued connecting NT8 to Accord.NET.
I've been able to successfully follow the "getting started"" instructions on github and generate the SVM chart from within Visual Studio.
Unfortunately I'm unsure how to successfully reference Accord.NET inside the ninjascript declarations, or reference the dlls, let alone where to save them within NT8.
Can someone please assist me (and others)?
Can you help answer these questions from other members on NexusFi?
Why would you absolutely want the accord.net to run in the memory space of NT ?
I would suggest an alternative road and to make a stand-alone application, that runs next to NT
and call it from your indicators using a classic tcp/ip call or a http call on a higher level if you want.
Thank you for the recommendation. As I am a complete greenhorn around programming in visual studio, I take it you mean a .exe C# function like one you'd make in Matlab, which I would then call from within NT8 to do the heavy mathematical lifting?
Do you know any good resources on how to implement a tcp/ip call?
I'm not entirely sure how Accord.Net works but if you want to get up and running quickly and get connected to the external .Net libraries, do the following:
1) Open the Ninjascript editor
2) Right click and in the menu select References. Point to the external libraries you want to access.
This will at least allow you to quickly prototype the code you want.
If you go this route, make sure your accord.net version libraries are compiled for the same .net version
and that all dependencies are reachable in the path
I did end up going with that path (least resistance). Seems to be in order and compatible with the .NET version I have.
Ive got linear and polynomial regression indicators functioning with accord in nt8 now. The resources online for the neural network and kpca libraries are quite sparse though. Does anyone know any good material to test and replicate in nt8?