• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
              http://www.ninjatrader.com/support/m...rVendorDLL.mp4
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by denalek2419, Today, 01:46 PM
              0 responses
              3 views
              0 likes
              Last Post denalek2419  
              Started by REI140205, Today, 12:58 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Jim  
              Started by Aditrade, Today, 12:33 PM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_Kate  
              Started by music_p13, Today, 12:22 PM
              2 responses
              10 views
              0 likes
              Last Post music_p13  
              Started by The Big D, Today, 11:41 AM
              2 responses
              7 views
              0 likes
              Last Post The Big D  
              Working...
              X