Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exported NinjaScript being linked to other assemblys

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

    #16
    Thanks for your reply Chelsea. This is a real annoyance.

    It appears that my script got corrupted whilst I was editing it. I created a new one from scratch and did not have the issue.

    I wish there was a way to save new versions of the strategies, without having to start from scratch.

    Comment


      #17
      Hello angela d,

      To create a copy of a strategy:
      • In the Control Center select Tools > Edit NinjaScript > Strategy
      • Select the strategy to copy > Click Ok
      • Right-click within the code window > select Save As
      • Give the strategy an unique name > Click OK


      To create a copy of an indicator:
      • In the Control Center select Tools > Edit NinjaScript > Indicator...
      • Select the indicator to copy > Click Ok
      • Right-click within the code window > select Save As
      • Give the indicator a unique name > Click OK
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        I have saved a strategy under a new name in order to make incremental changes, but it is not available in the "Edit Strategy" dialog. Is there a different way to open and edit a strategy that has just been saved under a new name?

        Thanks in advance.

        Comment


          #19
          Hello angela d,

          If the script has been saved, re-open the Tools -> Edit NinjaScript -> Strategy... window and it will be listed (even if it is not compiled). This window when opened, lists the files in the Documents\NinjaTrader 7\bin\Custom\Strategy folder. If there is a file with that name in this folder, it will be listed in dialog window.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            It doesn't appear to be saving. I right-clicked within the Strategy Wizard, selected "Save As", gave it a name and clicked "Ok". The strategy is not available via Tools>Edit Strategy, nor is it in the custom strategy directory.

            Any ideas?

            Comment


              #21
              Hello angela d,

              I agree that option is slightly misleading for both workspaces and for scripts.

              When you select Save As, this opens the copy of the script but does not actually save it.
              You have to click the Save icon (the first icon (an icon of a diskette) on the toolstrip of the NinjaScript Editor window) to save the file, or click compile and compile it.

              The same is true of workspaces. Selecting Save Workspace As, opens a copy of a workspace but doesn't actually save it until you click save.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #22
                I've done both several times. It does not save out.

                Comment


                  #23
                  Hello angela d,

                  Below is a link to a video that demonstrates making a copy of a script.
                  http://screencast.com/t/MgiwRHp4KlR

                  If this process is not working for you, please send an email to platformsupport [at] ninjatrader [dot] com so that we may schedule a call to assist. In the email please include a link to this forum thread.
                  Chelsea B.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

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