Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

You have custom ninja script files on your pc...

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

    #46
    Hello,
    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
    Cody B.NinjaTrader Customer Service

    Comment


      #47
      Hi Cody,

      Thanks for the reply. I already try that and my original post has the screen shots.

      Please check my original post.

      Thanks.

      Comment


        #48
        Hi, thanks for your reply.

        The following video explains how to resolve compile errors like you are seeing there:

        Are you missing an assembly or reference?

        Based on your screenshot, it appears as though you'll need to add references to the base .dll (NOT the .x86 or .x64 .dll files) files in your (My) Documents/NinjaTrader 7/bin/Custom folder.

        if you run into further issues resolving this, I recommend writing in to platformsupport [AT] ninjatrader [DOT] com so that we may remotely assist you. Please include a timeframe in which we may connect and a method of contact.

        Please let us know if we may be of further assistance.
        <span class="name">Alex C.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #49
          Help!

          Hi, i got a new problem about import ninja script. When i follow your steps to solve it, i got this result. (please see my attachment)

          "NinjaTrader.Indicator.SMA is a type but is used like a variable" CS0118

          How to solve this problem? Which .dll should i add? please help..
          Attached Files

          Comment


            #50
            Hi LMF1128,

            Since this is occurring on the stock indicators, please repair your installation to resolve.

            Navigate to this page
            Copy your license key into the box
            Download the NT7 installer
            Run the installer, select 'Repair' once prompted

            You should no longer see these errors.
            <span class="name">Alex C.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment


              #51
              oh, thank you very much!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Christopher_R, Today, 12:29 AM
              0 responses
              9 views
              0 likes
              Last Post Christopher_R  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              166 responses
              2,235 views
              0 likes
              Last Post sidlercom80  
              Started by thread, Yesterday, 11:58 PM
              0 responses
              3 views
              0 likes
              Last Post thread
              by thread
               
              Started by jclose, Yesterday, 09:37 PM
              0 responses
              8 views
              0 likes
              Last Post jclose
              by jclose
               
              Started by WeyldFalcon, 08-07-2020, 06:13 AM
              10 responses
              1,415 views
              0 likes
              Last Post Traderontheroad  
              Working...
              X