Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

You have custom NinjaScript files on your PC...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hello Rob001,

    You have two options; you can move the files to the current settings directory or you can remove the references to the missing files.

    If you are able to locate the files mentioned in the references, move these files to:
    Documents\NinjaTrader 7\bin\Custom

    Then compile any script once more and check for any remaining errors.

    If you want to remove the references:
    • In Control Center menu bar go to Tools > Edit NinjaScript > Indicator
    • In the indicator dialog select any indicator and click on the ‘Ok’ button.

    This will open the NinjaScript editor for you :
    • Right click in the code section of the NinjaScript editor.
    • In the context menu click on ‘References’.
    • In the Reference dialog, if a reference to the noted DLL files exists already then select the DLL’s which are giving errors one by one and click on the ‘Remove’ button.

    After removing, add any missing references to files that are existing:
    • In the Reference dialog, Click on the ‘Add’ button.
    • Select all the missing DLL’s one by one and then click ‘Ok’. (located in the Documents\NinjaTrader 7\bin\Custom\ folder or in the NinjaTrader installation folder, typically C:\Program Files (x86)\NinjaTrader 7\bin64)
    • For items that have 3 versions of the file (two of which will have x86 or x64 in the filename) select the 3rd version of the file that does not say
    • Compile the indicator now by pressing F5.
    • The issues should now be resolved and NinjaTrader should be again in properly compiled state

    Please also see the section “How to add a reference” from our help guide
    If you would like assistance, please send an email to platformsupport [at] ninjatrader [dot] com. In the email, please include a link to this forum thread and we can schedule a call to assist during our normal support hours.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      thanks for your help..... it appears to be all sorted now

      Comment


        #18
        Removing 3rd party scripts NT 8

        How does one do this in NT v8 ?

        Originally posted by NinjaTrader_Kyle View Post
        Hello shaneaw,

        Thank you for your post.

        Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.

        Open NinjaTrader
        From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
        Select any indicator and double click on it (we need only to open and compile one script to see all compile errors for all files).
        A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
        At the bottom of the window a new section will appear where you can find the error locations.
        From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.
        If you are unsure as to what the error is indicating, please send me a screenshot of the error with the name and description fields clearly readable.

        To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

        Click here for instructions


        Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

        Click here for detailed instruction

        We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums - http://www.ninjatrader.com/support/f...ead.php?t=4678

        Comment


          #19
          Hello aquila,
          • Open NinjaTrader
          • From the Control Center click the New menu -> select NinjaScript Editor
          • On the right, double click any file to open it (we need only to open and compile one script to see all compile errors for all files).
          • Right click the code in the window and select Compile to compile all scripts
          • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
          • At the bottom of the window a new section will appear where you can find the error locations.
          • From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.

          If you are unsure as to what the error is indicating, please send me a screenshot of the error with the error column fully expanded so that I may read the entire error message.

          To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

          Click here for instructions

          Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

          Click here for detailed instruction
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            I've got the same error message and need some help to fix it.

            The error file 'NinjaTrader.Vendor.cs' under NinjaTrader7/bin/custom/ folder. I'm not too sure if I can delete the file itself, or need to keep it. If I need the file, how can I modify for those errors?
            Attached Files

            Comment


              #21
              Hello tako3,

              These errors are caused when the necessary reference to NinjaTrader.Vendor.dll is not found. The exact messages may vary, but you will always see NinjaTrader.Vendor referenced in the left "NinjaScript File" column.
              1. Right-click within the NinjaScript Editor window and select "References".
              2. If there is already a reference to NinjaTrader.Vendor.dll, select the reference. If there is not, skip to step 4.
              3. Click "Delete" to remove the reference.
              4. Click "Add"
              5. Locate the NinjaTrader.Vendor.dll file for the file mentioned in the error and select it.
              6. Click "Open" to add the reference.
              7. Click "OK" and recompile.


              Below is a link to a video that demonstrates.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Barry Milan, Today, 10:35 PM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by WeyldFalcon, 12-10-2020, 06:48 PM
              14 responses
              1,428 views
              0 likes
              Last Post Handclap0241  
              Started by DJ888, Yesterday, 06:09 PM
              2 responses
              9 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              40 views
              0 likes
              Last Post jeronymite  
              Started by bill2023, Today, 08:51 AM
              2 responses
              16 views
              0 likes
              Last Post bill2023  
              Working...
              X