Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

errors in @SMA.cs must be solved

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

    errors in @SMA.cs must be solved

    Hello,
    I was working with the NinjaScript editor , and suddenly appeared an error saying that I must solve programming errors with the @SMA.cs indicator.
    But it is a standard indicator in NT8 and I didnīt modified it, I didnīt do anything in its code !!!
    I was working with my own indicators or strategies, and now with this error that must be solved I canīt work in anything, because I must solve "programming errors "with that indicator, wich is standard in NT8!.
    I downloaded again my latest version of NT8, and selected the option "repair" NT8.
    But after doing that, open again NT8, go to NinjaScript editor and when I go to any strategy to work on it, appear again the same error message with @SMA.cs that must be solved first !!
    Attached Files

    #2
    I downloaded again the latest version, and when I open again NT8 appear that message:

    Click image for larger version

Name:	image.png
Views:	230
Size:	14.7 KB
ID:	1255928

    Comment


      #3
      I have the latest version of NT8.
      Attached Files

      Comment


        #4
        I reset the Max Position Size =0 in the Sim101 account, and when I go again to the NinjaScripteditor happens the same !!!!!
        Attached Files

        Comment


          #5
          And if I go to a chart and try to insert a strategy, in the list of all srtategies only appear very few, and the rest of strategies ( more than 50-60...)donīt appear as available !!
          Attached Files

          Comment


            #6
            Hello Parmenides48,

            Thanks for your post.

            The compile error would need to be resolved before you are able to run a successful compile.

            Please check the following items and advise if you have duplicate files listed.
            • Expand the indicators folder on the right side of the NinjaScript Editor and check if you have duplicate files listed.
            • Go to the Documents\NinjaTrader 8\bin\Custom\Indicators folder and check if duplicate files are listed.
            I suspect there will not be duplicates listed and if there is not I would recommend repairing your installation and then compiling.

            Please follow the steps listed below to completely uninstall and reinstall NinjaTrader.
            • Close all running applications.
            • Navigate to your Documents folder > Right click on the 'NinjaTrader 8' folder > Rename > rename the folder to 'NinjaTrader 8 OLD'. DO NOT delete this folder.​
            • Uninstall NinjaTrader within Windows Control Panel.
            • Reboot your machine.
            • Once these steps are completed, download and install NT8 from the link below.
            • account.ninjatrader.com

            Once complete please compile your files in the NinjaScript Editor and advise if the errors are still present.​
            Last edited by NinjaTrader_BrandonH; 06-14-2023, 08:59 AM.
            <span class="name">Brandon H.</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


              #7
              if I delete NT8 and I don't have a Backup of NinjaScript files, I will loose all ??!!

              Comment


                #8
                if I copy my ninjascript files in a folder outsude Nt8 and delete NT8;
                after reinstall NT8, CAN i copy all this files in the original folder in NT8 and will all be recovered without problems?


                Comment


                  #9
                  Hello Parmenides48,

                  Thanks for your note.

                  If you rename the NinjaTrader 8 folder before deleting NinjaTrader, the files will remain on your PC.

                  Please answer the questions in my previous post (also seen below) asking if you see duplicate files names in the NinjaScript Editor > Indicators folder or in the Documents\NinjaTrader 8\bin\Custom\Indicators folder so I may assist further.

                  Please check the following items and advise if you have duplicate files listed.
                  • Expand the indicators folder on the right side of the NinjaScript Editor and check if you have duplicate files listed.
                  • Go to the Documents\NinjaTrader 8\bin\Custom\Indicators folder and check if duplicate files are listed.
                  ​If you do not see duplicates listed:
                  • Close NinjaTrader.
                  • Download the NinjaTrader installer from account.ninjatrader.com.
                  • Run the installer and select the 'Repair' button to run a repair on your platform. (This will not remove your AddOns, Workspaces, etc.)
                  • After the repair is complete, open NinjaTrader.
                  • Open a New > NinjaScript Editor window and run a compile to check for errors.
                  <span class="name">Brandon H.</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


                    #10
                    Now I am in the street and my Computer is at home. I will be in front of my PC in 2-3h aprox, then I will follow your instructions and send you the results
                    . thanks.

                    Comment


                      #11
                      Hello.
                      I checked the indicators list in the NinjaScript Editor and in Documents\NinjaTrader 8\bin\Custom\Indicators folder​, and I didn't see any duplicated indicator.
                      Then I did the 'Repair' option, and when I open NT8, the first message that appear is : see errorMessage in the attached image.
                      And after about 2 minutes NT8 starts running.
                      Then I go to the NinjaScript Editor and try to compile an indicator, and again the same error message about @SMA.cs. See second attached image.(errorWhenCompile).
                      Attached Files

                      Comment


                        #12
                        I donīt understand why @SMA.cs must be "compiled" if this is a standard indicator in NT8 !!??

                        Comment


                          #13
                          Or better said, if @SMA.cs is not duplicated, why appear this message !!??

                          Comment


                            #14
                            Hello Parmenides48,

                            Thanks for your notes.

                            All NinjaScripts must successfully compile which includes indicators that come default with NinjaTrader.

                            Please follow the steps below to create a clean environment and then open a New > NinjaScript Editor window, run a compile, and note if the compile error persists.

                            Creating a clean environment can be done by following the steps below:
                            1. Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
                            2. Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from account.ninjatrader.com
                            3. Open NinjaTrader, open a New > NinjaScript Editor window, and note if the error continues to show.
                            If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.

                            For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.​

                            Does the compile error show when testing in a clean environment?
                            <span class="name">Brandon H.</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


                              #15
                              Now I have the NinjaTrader8 OLD folder and downloaded and installed again the latest version of NT8.
                              When I open NT8, and open NinjaScript editor, I see that all my NinjaScript files and ADD-ONs are not here.
                              And arenīt in Documents/NinjaTrader8........../Indicators and .../Strategies.
                              I can find all them in Documents/NinjaTrader8OLD........./Indicators and .../Strategies.

                              How can I load all my NinjaScript files and ADD-ONs in a secure way into NinjaTrader8 folders ( of Indicators and Strategies) ???
                              Copy and Paste in the new NinjaTrader8 ??




                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              85 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              48 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              29 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              32 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              67 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X