Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving Strategies

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

    Moving Strategies

    If I have created strategies within the STRATEGIES FOLDER and then created a sub folder how can I move those strategies to the subfolder?

    TIA

    #2
    Hello dmking,

    In the NinjaScript Editor in the Explorer pane to the right, right-click in the Strategies folder > select New Folder > give the new folder a name.

    Then drag and drop any unlocked strategies you would like into this folder in the NinjaScript Editor.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea. You all provide excellent customer support.

      Comment


        #4
        OK, so I did the above, but can't drag and drop. There is not that says the files are locked.

        D

        Comment


          #5
          Hello dmking,

          Be sure to close the script before moving it and be sure to click and drag on the filename.

          Below is a link to a video that demonstrates.


          If you are experiencing different behavior I'd like to take a look with you.
          Please send an email to platformsupport [at] ninjatrader [dot] com. Please include a link to this forum thread in the email.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            I have a question about this matter.

            When i move an indicator into a folder as shown in the video, the line that begins with 'namespace' will show the folder name at the end.

            Ex. if my folder is named 'TrendIsYourFriend'
            //This namespace holds Indicators in this folder and is required. Do not change it.
            namespace NinjaTrader.NinjaScript.Indicators.TrendIsYourFrie nd // <-- folder name added at the end of this line

            But when i apply the same steps to a strategy it is not the case.

            Before moving the strategy into the folder named 'TrendIsYourFriend'
            //This namespace holds Strategies in this folder and is required. Do not change it.
            namespace NinjaTrader.NinjaScript.Strategies

            After moving the strategy iinto the folder named 'TrendIsYourFriend'
            //This namespace holds Strategies in this folder and is required. Do not change it.
            namespace NinjaTrader.NinjaScript.Strategies // <-- no change

            How is that? Do i need to manually add my folder name at the end like this ?
            namespace NinjaTrader.NinjaScript.Strategies.TrendIsYourFrie nd

            If i do, will that cause problems and put some restrictions to the scope of some of my Variables, Extentions etc. which are public?

            Thanks
            Last edited by trendisyourfriend; 04-08-2022, 10:12 AM.

            Comment


              #7
              Hello trendisyourfriendtrendisyourfriend,

              The strategy cannot be called by any other scripts so the namespace should not make a difference.

              Are you seeing the strategy show in the custom folder in the Strategies window?
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,403 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by Shai Samuel, 07-02-2022, 02:46 PM
              4 responses
              95 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by DJ888, Yesterday, 10:57 PM
              0 responses
              7 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              159 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Yesterday, 09:29 PM
              0 responses
              8 views
              0 likes
              Last Post Belfortbucks  
              Working...
              X