It appears you are encountering issues with installing a FlowBots product due to custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a NinjaScript archive file. Here's a breakdown of how to address this:
-
Identifying Compile Errors:
- Open the NinjaScript Editor from the Control Center by going to New > NinjaScript Editor.
- Right-click in the background of the NinjaScript Editor and select "Compile".
- Errors in orange must be resolved before you can install any add-ons.
- A loading symbol in the bottom-left of the editor indicates compilation. If no errors appear after it disappears and you hear a chime, there are no errors.
- Copy or take a screenshot of all the errors that appear in the bottom window and send them to FlowBots support to help them understand the problem and propose a solution.
-
Common Compile Errors and Resolutions:
-
CS0006 - "Metadata file "example.dll" could not be found": This means a .dll file is being referenced, but NinjaTrader can't find it.
- To resolve:
- Right-click in the NinjaScript Editor and select "References".
- Locate and select the reference to the *.dll file mentioned in the error.
- Click "Remove" to remove the reference.
- Click "OK" and recompile.
- To resolve:
-
CS0246 - "The type or namespace name 'exampleassembly' could not be found": This means NinjaTrader can't find a reference to a .dll file.
- To resolve:
- Right-click within the NinjaScript Editor and select "References".
- Click "Add".
- Locate the *.dll file mentioned in the error.
- Click "Open" to add the reference.
- Click "OK" and recompile.
- This will also resolve the CS0118 error that may appear below CS0246.
- To resolve:
-
CS0234 - "The type or namespace name 'exampleindicator' does not exist in the namespace 'examplelocation'": This means a system indicator is missing from the NinjaTrader 8 > bin > Custom > Indicator folder or the file is corrupt.
- To resolve:
- Shut down NinjaTrader Desktop.
- Open the "Control Panel" from the Windows Start Menu.
- Select Programs > Programs and Features.
- Highlight NinjaTrader and click "Repair".
- Restart NinjaTrader and recompile.
-
CS0006 - "Metadata file "example.dll" could not be found": This means a .dll file is being referenced, but NinjaTrader can't find it.
-
General Troubleshooting Steps:
- Remove the problematic product: Before attempting to reinstall, remove the product from NinjaTrader using Tools > Remove NinjaScript Assembly. Then select the file(s) you want to remove and press the "Remove NinjaScript assembly" button.
- Reinstall the FlowBots product: After removing the product, try installing it again by going to Tools > Import > NinjaScript Add-On... and selecting the downloaded .zip file.
- Restart NinjaTrader after installing or updating a product. This is crucial to ensure the changes take effect.
-
Additional Information
- A full list of documented NinjaScript Compile Errors can be found in the NinjaTrader Desktop Help Guide - Compile Error Codes.
- If the errors are not documented, contact the vendor/developer of the add-on identified in the error.
- If the error is occurring on a NinjaScript you coded yourself, contact NinjaTrader support.
By addressing these errors, you should be able to successfully install the FlowBots product.
Comments
0 comments
Article is closed for comments.