NexusFi: Find Your Edge


Home Menu

 





Importing Custom Indicator Causing Error Problems


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one mhamrin with 6 posts (0 thanks)
    2. looks_two Fat Tails with 4 posts (10 thanks)
    3. looks_3 shmcclun with 3 posts (0 thanks)
    4. looks_4 goldie with 3 posts (0 thanks)
    1. trending_up 11,690 views
    2. thumb_up 10 thanks given
    3. group 5 followers
    1. forum 17 posts
    2. attach_file 2 attachments




 
Search this Thread

Importing Custom Indicator Causing Error Problems

  #1 (permalink)
 shmcclun 
Denver, CO/ USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Forex
Posts: 5 since May 2012
Thanks Given: 3
Thanks Received: 0

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.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
23 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

Remove all elements of that MASlopeMultiV3.10.

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.

Reply With Quote
  #3 (permalink)
 shmcclun 
Denver, CO/ USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Forex
Posts: 5 since May 2012
Thanks Given: 3
Thanks Received: 0


@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.


Fat Tails View Post
Remove all elements of that MASlopeMultiV3.10.

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. I was not able to try this method do to the original error message.

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. I successfully removed the DLL from this folder and proceeded to the next step.

To remove references: Edit any indicator and right-click into the editor with your mouse. Select "References" and remove reference to the DLL. This is where I may have made my mistake, there was still a reference to the MASlopeMulti.dll, however after deleting the file I restarted and did not have any luck in the original error message problem. Therefore, I came back to the reference section and also removed the remaining DLL files (probably wasn't the best idea on my part), and am now in a further problem than before I believe?!? Any thoughts?

After this exercise shut down NinjaTrader and restart again.


Started this thread Reply With Quote
  #4 (permalink)
 shmcclun 
Denver, CO/ USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Forex
Posts: 5 since May 2012
Thanks Given: 3
Thanks Received: 0

Thank you @Fat Tails for your help this morning in resolving my NT error problems.
Everything is back up and running perfectly!

Started this thread Reply With Quote
  #5 (permalink)
 goldie 
Singapore
 
Experience: Intermediate
Platform: NinjaTrader,Amibroker,TOS
Trading: ES,EUR/USD
Posts: 15 since Oct 2011
Thanks Given: 6
Thanks Received: 2


shmcclun View Post
Thank you @Fat Tails for your help this morning in resolving my NT error problems.
Everything is back up and running perfectly!

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.

seems something just mess up.

Reply With Quote
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


goldie View Post
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.

seems something just mess up.


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.

Reply With Quote
Thanked by:
  #7 (permalink)
 goldie 
Singapore
 
Experience: Intermediate
Platform: NinjaTrader,Amibroker,TOS
Trading: ES,EUR/USD
Posts: 15 since Oct 2011
Thanks Given: 6
Thanks Received: 2


Fat Tails View Post
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?

Reply With Quote
  #8 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


goldie View Post
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?

Edit any of your indicators and compile. Post a screenshot of the error messages shown by the editor.

Reply With Quote
Thanked by:
  #9 (permalink)
 goldie 
Singapore
 
Experience: Intermediate
Platform: NinjaTrader,Amibroker,TOS
Trading: ES,EUR/USD
Posts: 15 since Oct 2011
Thanks Given: 6
Thanks Received: 2


Fat Tails View Post
Edit any of your indicators and compile. Post a screenshot of the error messages shown by the editor.

ONE corrupted indicator seems to affect the rest. I am surprised how other files could be affected. they had to be deleted and then it would work.

Reply With Quote
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



goldie View Post
ONE corrupted indicator seems to affect the rest. I am surprised how other files could be affected. they had to be deleted and then it would work.

When you compile via F5 or import an indicator, all indicators and strategies will be compiled for use with NinjaTrader.

A single corrupted file or a single mising link will prevent the compiling.

Reply With Quote
Thanked by:




Last Updated on May 23, 2016


© 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