Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Ninjascript file error

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

    Custom Ninjascript file error

    Hello Team,

    I am new to NT7. I tried installing few of custom indicators, manually directly inside Documents\NinjaTrader7\bin\Custom\ folder and not through File->Utilities->Import NinjaScript, as i was not knowing about this concept.

    Now, while adding few more custom indicators through File->Import , I am getting an error message as under;

    You have custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a NinjaScript Archive File.
    After some reading and search, i tried accessing Indicators, and hitting F5, to compile, but still above message continues. So far, I have no error while running those couple of custom indicators, and now completely clueless, which of the indicator would be showing such error, and no idea how to resolve, such that, I can follow proper method of importing through File->Utilities->Import NinjaScript, route.

    Please guide, how to remove this error, permanently.
    Last edited by analyst; 12-07-2017, 05:42 AM.

    #2
    Hello analyst,

    Please follow the instructions below to see where the errors are coming from after compiling any 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 NinjaScript File column and Error column fully visible (not to be confused with the Code column)

    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
    JasonNinjaTrader Customer Service

    Comment


      #3
      Thanks for the guide.

      Broadly, two category of errors , repeating at more than one place, are like
      1) The type or namespace name "abc" [name of indicator] could not be found (are you missing a using directive or an assembly reference?
      2) indicator is a 'method' but is used like a 'type'

      Comment


        #4
        Can you please right click in the window that shows the indicator code and select 'References' instead of 'Compile'. Check if you see a .dll reference for the indicators in question. If not, please click Add and add the .dll file for the indicators in question. If you see 3 .dll files for the same indicator, please add the .dll file that does not contain "X86" or "X64" in its name.

        If there are .dll references already present, they likely point to the incorrect file location. I suggest to perform a Windows search for one of the .dll files and check where the .dll file is located on your computer. If the location is different than what is shown in the References window, please remove the .dll reference and then add it back using the correct file location.
        JasonNinjaTrader Customer Service

        Comment


          #5
          that solves all problem, Thanks a ton, @Jason

          Comment


            #6
            @Jason , Just follow up question to your reply in # 4, having done as you mentioned, what should be done with *64*.dll and *84*.dll files, should those file be deleted, or be retained as it is where they are?

            Comment


              #7
              I am not sure if you can delete them. I suggest to retain them.
              JasonNinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Jason View Post
                I am not sure if you can delete them. I suggest to retain them.
                Okay, Thanks, will keep them as they are

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by sidlercom80, 10-28-2023, 08:49 AM
                172 responses
                2,279 views
                0 likes
                Last Post sidlercom80  
                Started by Irukandji, Yesterday, 02:53 AM
                2 responses
                17 views
                0 likes
                Last Post Irukandji  
                Started by adeelshahzad, Today, 03:54 AM
                0 responses
                4 views
                0 likes
                Last Post adeelshahzad  
                Started by Barry Milan, Yesterday, 10:35 PM
                3 responses
                13 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by WeyldFalcon, 12-10-2020, 06:48 PM
                14 responses
                1,431 views
                0 likes
                Last Post Handclap0241  
                Working...
                X