Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Script Error

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

    Custom Script Error

    I had tried to import a custom script, but it was in NT7 version and I cannot remove it. I don't know how to correct the code, so I just want to remove it. Can you help me with this?

    #2
    Hello,

    Thanks for your post.

    Custom NinjaScripts can be removed in one of two ways from within NinjaTrader 8:
    • Add-ons can come as packages called 'assemblies'.An assembly can be removed by going to Tools > Remove NinjaScript Assembly > Select the assembly you wish to remove > Remove.
    • To remove NinjaScript individually you can go to New > NinjaScript Editor > Double click on the 'Indicators' (or the relevant) folder > Right click on the add-on you wish to remove and select 'Remove'. Repeat these steps for all add-ons you wish to remove.
    To resolve compilation issues, 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 New menu--> select NinjaScript Editor
    • Double click on the Indicators folder--> then double click on any of the indicators
    • Once the indicator code is in view right click in the window and select Compile to compile all NinjaScript objects
    • At the bottom of the NinjaScript Editor window, a new section will appear where you can find the error locations
    • You can exclude the file referenced in the editor by double clicking on the appropriate object type on the right of the NinjaScript Editor window. This will expand the object type folder. You can then select the file with a left click--> right click on the object--> then select Open to begin debugging the file, Exclude From Compilation, or Remove to delete the file.

    If you are unsure as to what the error is indicating, please send me a screenshot of the NinjaScript File column and Error column fully visible (not to be confused with the Code column)

    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 in our Help Guide:
    Please let us know if we may be of further assistance.
    Marco G.NinjaTrader Customer Service

    Comment


      #3
      I followed your instructions, but I couldn't figure it out. Here's a screen shot.

      Comment


        #4
        Attached is the NT7 add-on file.
        Attached Files

        Comment


          #5
          Hello,

          Thanks for your reply.


          The compile error you are seeing in the NinjaScript Editor indicates you are missing references to .DLL files in your installation or the .DLL files do not exist in your installation. Please follow the steps below to rectify the errors.
          1. From the Control Center please select New--> NinjaScript Editor
          2. In the NinjaScript Editor please right click and select References.
          3. In the Reference window look for the .DLL file reference in the compile error by name (in the error the file name has a .cs at the end)
          4. If you see the .DLL file reference please left click on the reference and select Remove
          5. If you removed the reference in the previous step or you do not see the .DLL file reference then please select Add
          6. The Add option will open a File Explorer, from the path that was opened please locate the .DLL file
          7. If you find the .DLL please left click to select it and then select Open--> then select OK in the References window--> then right click in the NinjaScript Editor--> select Compile
          8. If you do not find the .DLL in the File Explorer please close the File Explorer and References windows--> then navigate to Documents\NinjaTrader 8\bin\Custom on your PC--> and delete the .cs file referenced in the compile error--> then right click in the NinjaScript Editor--> Compile

          If you would like assistance with the steps provided please let us know and we can setup a remote assistance session with one of our techs. You can request this by sending an email to platformsupport[at]ninjatrader[dot]com.
          Marco G.NinjaTrader Customer Service

          Comment


            #6
            Thank you. That worked with no compilation error. I test it further.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Karado58, 11-26-2012, 02:57 PM
            8 responses
            14,828 views
            0 likes
            Last Post Option Whisperer  
            Started by Option Whisperer, Today, 09:05 AM
            0 responses
            1 view
            0 likes
            Last Post Option Whisperer  
            Started by cre8able, Yesterday, 01:16 PM
            3 responses
            11 views
            0 likes
            Last Post cre8able  
            Started by Harry, 05-02-2018, 01:54 PM
            10 responses
            3,204 views
            0 likes
            Last Post tharton3  
            Started by ChartTourist, Today, 08:22 AM
            0 responses
            6 views
            0 likes
            Last Post ChartTourist  
            Working...
            X