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 TraderG23, 12-08-2023, 07:56 AM
                  9 responses
                  382 views
                  1 like
                  Last Post Gavini
                  by Gavini
                   
                  Started by oviejo, Today, 12:28 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post oviejo
                  by oviejo
                   
                  Started by pechtri, 06-22-2023, 02:31 AM
                  10 responses
                  125 views
                  0 likes
                  Last Post Leeroy_Jenkins  
                  Started by judysamnt7, 03-13-2023, 09:11 AM
                  4 responses
                  59 views
                  0 likes
                  Last Post DynamicTest  
                  Started by ScottWalsh, Yesterday, 06:52 PM
                  4 responses
                  36 views
                  0 likes
                  Last Post ScottWalsh  
                  Working...
                  X