Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Compile errors

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

    Compile errors

    My worked before. Recently because of corrupted data base, so I had to delete database and reconfigure my systems. Now when I re-compile my code, it has the following errors which I don't see before. These lines are just comments. Not sure what I did wrong.

    The type or namespace name 'JurikDMX' could not be found
    CS0246
    Line 21
    Column 17

    The type or namespace name 'JurikJMA' could not be found
    CS0246
    Line 22
    Column 17


    Line 20 namespace NinjaTrader.Strategy
    Line 21 {
    Line 22 /// <summary>
    Line 23 /// Enter the description of your strategy here
    Line 24 /// </summary>
    Line 25 [Description("Enter the description of your strategy here")]
    Line 26 public class MyStrategy : Strategy

    #2
    I tried to compile any Indicator from Tools->Edit NinjaScript->Indicator, it also reports the similar errors when I compile them.

    Comment


      #3
      The error suggests you're missing a reference to the Vendor.dll. There may be other references missing as well.

      Please follow the steps below to rectify the errors.
      • 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 back the reference with the right path :
      • In the Reference dialog, Click on the 'Add' button.
      • Select all the missing DLL's (located in the Documents\NinjaTrader 7\bin\Custom\ folder or in the NinjaTrader installation folder, typically C:\Program Files (x86)\NinjaTrader 7\bin64) one by one and then click 'Ok'. [Please adjust if needed for 32 bit setup]
      • Compile the indicator now by pressing F5.
      • The issues should be resolved and your NT should be again in properly compiled state

      Please also see the section "How to add a reference" from our help guide


      If you run into any issues fixing the issue with the steps provided please let us know and we can setup a remote assistance session with one of our techs.
      MatthewNinjaTrader Product Management

      Comment


        #4
        It worked. Thanks a lot.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        6 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X