MTNTF7 - NinjaScript - Common Errors - are you missing a using directive or an assembly reference?
Common MTNTF7 errors listing - exported from a list of errors
Please click here to view how to find and export errors
Reported NinjaScript Issues
| NinjaScript File | Error | Code | Line | Column |
| Indicator\MicroTrends.MTNTF.Indicator.NBarReversal.cs | The type or namespace name 'MTIndicatorSignalsBiased' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 22 | 47 |
| Indicator\MTSignalsCustomIndicator1.cs | The type or namespace name 'MTIndicatorSignals' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 20 | 46 |
| Strategy\MicroTrends.MTNTF.Strategy.SDK.cs | The type or namespace name 'MTStrategyBase' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 24 | 52 |
| Strategy\MicroTrends.MTNTF.Strategy.SDK.cs | The type or namespace name 'MTStrategyBase' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 921 | 48 |
| Strategy\MicroTrends.MTNTF.Strategy.SDK.cs | The type or namespace name 'IMTTradeSysBase' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 256 | 65 |
| Strategy\MicroTrends.MTNTF.Strategy.SDK.cs | The type or namespace name 'IMTDirectionalBiasHTF' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 117 | 78 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsATR' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 22 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsATRHTF' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 23 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsATRTrailingStop' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 24 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsATRVolatilityBands' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 25 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsDivergence' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 26 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsDynamicTrend' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 27 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsInfoBar' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 28 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsMAPack' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 29 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsMAPackHTF' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 30 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsVolumeProfile' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 31 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MTOrderPlot' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 32 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsSlope' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 33 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsSMI' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 34 | 17 |
| MicroTrendsNinjaTraderFramework7.cs | The type or namespace name 'MicroTrendsStrategyVisualiser' could not be found (are you missing a using directive or an assembly reference?) | CS0246 - click for info | 35 | 17 |
Diagnosis:
- It is possible to know from the error list that SDK has been installed:
- Indicator\MicroTrends.MTNTF.Indicator.NBarReversal.cs
- Strategy\MicroTrends.MTNTF.Strategy.SDK.cs...
- SDK requires a reference to the file MicroTrendsNinjaTraderFramework7.dll
- MicroTrendsNinjaTraderFramework7.cs is an open source "ninjatrader wrappers" file that is installed to the NinjaTrader 7/bin/custom directory - this requires a reference to the file MicroTrendsNinjaTraderFramework7.dll
..Conclusion the reference to the file MicroTrendsNinjaTraderFramework7.dll needs adding
Possible Solutions/course of actions
- Add a reference to the MicroTrendsNinjaTraderFramework7.dll in the NinjaScript code editor
- Select and open an indicator for editing in the code editor


- Right click the references menu and select the required reference MicroTrendsNinjaTraderFramework7.dll

- Select and add the reference to the required assembly/library
- Check and view the assembly is listed- then Ok the action to add the reference
- Compile and check errors are resolved
- Success is when all errors in grid at footer are gone
-
Perform a complete uninstall and re-install - To resolve your issue you will need to manually uninstall the old version and install the new with some extra steps to make sure you fix all errors with MTNTF7 or other 3rd party assmblies.
- Remove old - Check NT is cleaned from all the MT Framework and check for any Errors: Please click here to view the article for version 7.0.1.67 and prior how to uninstall correctly, verify and troubleshoot
- Install new - Check NT for errors and that files are in place and are the correct version: Please click here to view the article for version 7.0.1.67 for installing or updating, verifying and troubleshooting
- Diagnose and Cure any Errors with NinjaTrader 7 Ninjascripts: Please click here to view how to diagnose and fix Ninjascript errors in NinjaTrader7
0
Please sign in to leave a comment.
Comments
0 comments