Announcement

Collapse
No announcement yet.

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 defa0009, 12-13-2024, 09:19 AM
        21 responses
        209 views
        1 like
        Last Post marcus2300  
        Started by ttrader23, Today, 04:48 PM
        0 responses
        6 views
        0 likes
        Last Post ttrader23  
        Started by wisdomspoon, Today, 03:50 PM
        3 responses
        15 views
        0 likes
        Last Post rockmanx00  
        Started by Mountain_cast, 02-10-2025, 11:14 PM
        2 responses
        19 views
        0 likes
        Last Post Mountain_cast  
        Started by Robotman, Today, 01:06 PM
        2 responses
        37 views
        0 likes
        Last Post Robotman  
        Working...
        X