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)
NT 7 was running just fine the other day but I received this error when I tried to import a new indicator yesterday. When I went to import another indicator, this error message was received. "You have Custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a Ninjascript Archive File." I have read the previous posts about others problems with this exact issue and tried implementing the solution...with no luck.
When looking further into the problem in the log file, this is what was said. "Default Unable to create instance of NinjaTrader Indicator.MASlopeMulti'. 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.
Error is listed on a lot of my custom indicators and a lot that I have downloaded from futures.io (formerly BMT) that have been running for awhile now just fine. I did not run into this problem until I went to download both MASlopeMulti and MAPackage yesterday. I've deleted both since I have ran into the problem, and have restart NT numerous times, and still running into the same problem.
I then chose a random indicator to compile and see what error message was received "Metadata File:'C:\Users\shmcclun\Document\NinjaTrader 7\bin\Custom\MASlopeMultiV3.10.dll" could not be found.
Any help is appreciated.
Can you help answer these questions from other members on NexusFi?
For removing the DLL: First try to remove it via File -> Edit -> Remove NinjaScript Assembly. If that does not work you need to remove it manually.
To remove it manually: Go to folder My Documents -> NinjaTrader 7 -> bin -> custom. Delete the files labelled MaSlopeMulti *.*. If you remove the DLLs manually, you also need to remove the references manually.
To remove references: Edit any indicator and right-click into the editor with your mouse. Select "References" and remove reference to the DLL.
After this exercise shut down NinjaTrader and restart again.
@Fat Tails thanks for getting to me. I tried doing exactly what you said, but I didn't succeed just yet. I have replied below each of your points in red.
NJ was running ok until I put a anaholtema.cs into the custom/indicator folder
after that i could not import scripts through utility and got the darn message,..... custom indicator error,,,,,,
i deleted it and the indicator was not even used because it was not visible in the indicator list.
I was experimenting edit scripts and i tried to copy the whole chunk into another indicator and there was error when I compiled. I tried to compile another indicator that is working find and also have error message.
If you copy and paste around for sure you will run into problems, if you do not understand how to do it. The error messages are generated because you have
- either files with coding errors
- or files that reference missing files
None of these problems can be attributed to the anaHoltEMA, because
- it does not have coding errors
- it does not reference any external files
If you want to get rid of your mess, please post a screenshot of the error messages after compiling. Alternatively you can also have a look at you log and trace files and inform us about the error messages that you find there.
This is my second time experiencing the problem.
Last week. I copied files into the indicator folder and had the same problem.
I deleted them and voila, it worked.
However, I wanted to attempt again today, if a particular file is a problem. Okay, it may not be the right way
I could not even run the anaHoltema because it did not appear on the indicator list in NJ, but it is in the folder and visible.
I then attempt to import through utilities and the error message about custom indicator error....
I have read through the log file, no idea what is the issue.
can I pm you the log file?