Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiles in NinjaScript Editor, but not in Strategy Builder

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

    Compiles in NinjaScript Editor, but not in Strategy Builder

    Hello, this is my first post. I Thank and Praise the Lord Jesus Christ for this forum because I am not a coder. I have included the indicator mentioned in the title. It will compile just fine in the NinjaScript Editor, but when I go to compile it in the Strategy builder after putting in the criteria to meet for a buy or sell it comes back with the error window that says: "Could not compile NinjaScript". Any thoughts??
    Attached Files

    #2
    Hello Mr.Emini,

    The indicator code appears fine.

    Click View Code, then check for a compile error at the bottom of the NinjaScript Editor.

    If you see an error message, please copy and paste the error message into your next post.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea. Thank you for your reply. I am sorry, I'm not sure what you mean to "Click View Code". Where do I do that?

      Comment


        #4
        Hello Mr.Emini,

        This would be the first button on the bottom left of the Strategy Builder.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you Chelsea for your help!! Please find attached the information you requested. Click image for larger version

Name:	Compile Error.jpg
Views:	64
Size:	31.1 KB
ID:	1330421
          Attached Files

          Comment


            #6
            Hello Mr.Emini,

            Do you have a strategy named ATRTrailingStop?

            If so, you will need to delete it or rename it.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Yes Chelsea I do have a strategy by that name. How do I rename it?

              Comment


                #8
                Hello Mr.Emini,

                In the NinjaScript Editor right-click the strategy name, select Rename.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Hello Chelsea, it won't let me rename it in the NinjaScript editor. It says I need to manage it from the Strategy Builder. One problem though. Because there is a Ninjascript error the Strategy Builder will not open because it tell me it must be in an compilable state. How do I proceed?

                  Comment


                    #10
                    Hello Mr.Emini,

                    In the NinjaScript Editor temporarily exclude the QuickScalp strategy causing the compile errors.
                    (right-click the strategy, select Exclude from compiliation)
                    Then compile.
                    In the Strategy Builder make a copy of the ATRTrailingStop strategy with a new unique name.
                    Remove the original.
                    Then re-include the QuickScalp strategy in compiliation.

                    Moving forward, all of your scripts must have a new unique name.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Thanks Chelsea for all your help!! Thanks also for the instruction on selecting unique names for scripts!! I will try to remember that in the future! Have a blest day in the Lord Jesus Christ, and thanks again for your help!!! I really appreciate it!!
                      Last edited by Mr.Emini; 01-10-2025, 02:27 PM.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by NullPointStrategies, Today, 05:17 AM
                      0 responses
                      41 views
                      0 likes
                      Last Post NullPointStrategies  
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      124 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      64 views
                      0 likes
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      41 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Started by TheRealMorford, 03-05-2026, 06:15 PM
                      0 responses
                      46 views
                      0 likes
                      Last Post TheRealMorford  
                      Working...
                      X