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

How to copy a strategy in strategy builder

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

    How to copy a strategy in strategy builder

    Dear Team,
    Is any way that can copy a strategy in strategy builder and then modify it in strategy builder directly?

    #2
    check this link : https://www.youtube.com/watch?v=BA0W4ECyVdc

    Comment


      #3
      Hello williamzz,

      You would need to use the Builder and then the Save As feature. To do this, open the builder to where you can select strategies from the dropdown list. Click the dropdown list to show the strategies, and then hover your mouse over the strategy. You should now see Save As which can be used to duplicate the script.


      I look forward to being of further assistance.

      JesseNinjaTrader Customer Service

      Comment


        #4
        Although I've been following the exact steps as outlined in this video (https://youtu.be/BA0W4ECyVdc?t=508), I am unable to perform the Save As operation from within a contextual menu opened by right-clicking on the NinjaTrader Editor window (on the source code). My Save As option is disabled (grayed out). Please see the attached screenshot.

        The only option is, indeed, to do a Save As directly from the Strategy Builder wizard, like you said. Has the contextual menu Save As option been disabled in the latest versions of NinjaTrader 8?

        Comment


          #5
          Hello MarianApalaghiei,

          If this is a builder strategy you would need to keep using the builder until you unlock the code. SaveAs from within the NinjaScript editor is only intended for unlocked code. The first screen in the builder with the dropdown list is the correct way to duplicate a builder strategy.

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            Thank you all for the help and reply!It helps a lot!!!

            Comment


              #7
              Hey all - I actually had this same question before but found an easier way to do it.... If you simply open the strategy with the builder, change the name and then click compile you get a duplicate strategy with a different name so you're effectively copying the strategy.

              Way easier than unlocking and using save as because a lot of people can't code.

              If there is some issue with this method someone official please chime in but I've had no issues using it.

              Comment


                #8
                Hello RandanAL,

                Just to clarify for other users who are using the builder, you do not unlock the strategy to duplicate it.

                If you want to duplicate a builder strategy and also continue using the builder, you can use the builders existing Save As feature to duplicate the script:
                1. Navigate to the first page in the builder
                2. Click the drop down where the strategies are listed.
                3. Hover the mouse over the strategy you want to duplicate
                4. Click the now visible SaveAs.

                There is never any need to unlock the code to duplicate a builder strategy. I just wanted to stress this because unlocking the code will prevent the original strategy from being loaded in the builder.

                I look forward to being of further assistance.








                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by hurleydood, 09-12-2019, 10:45 AM
                14 responses
                1,093 views
                0 likes
                Last Post Board game geek  
                Started by cre8able, Yesterday, 04:16 PM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by cre8able, Yesterday, 04:22 PM
                1 response
                13 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by stafe, 04-15-2024, 08:34 PM
                5 responses
                28 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by StrongLikeBull, Yesterday, 04:05 PM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X