Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Additional Folders and classes in NS Editor and Export

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

    Additional Folders and classes in NS Editor and Export

    Since NinjaScript Editor becomes now much more advanced programming environment - here are some suggestion to further improve the experience/functionality.
    1. Allow for creating additional (parent) folders from the level of NinjaScript Explorer - at the moment you can only create subfolders of the existing folders or eventually create folder externally in Visual Studio - this folder then appears in NinjaScript Explorer as well.
    2. These new folders and their content should also be available to Export NinjaScript - at the moment the externally created folder is not available.
    3. Wizard on these new folders would simple say: "New Class" and asking for name of the class to be created. Sample class template:
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace NinjaTrader.NinjaScript.Common
    {
        partial class Common
        {
        }
    }
    What problem does it resolve? There are many times were we have methods/classes that are aplicable to more than one class - it could be some statistics methods, helper methods, extension classes, etc. As it is in NT7 for these files to be picked up by export they need to be inside Strategies or Indicators folders and so we end up having common objects in specific places were they don't belong.

    Now, obviously you guys have certain priorities for the development so here is a version minimum for now:
    1. Add one more folder: Common
    2. Include cs files from Common folder in the "exportable" folders

    #2
    I have the same problem. Now I have to choose to put them in Indicators or Strategies. It would be great to have a Common or Utilities section.

    Comment


      #3
      Originally posted by NJA_MC View Post
      I have the same problem. Now I have to choose to put them in Indicators or Strategies. It would be great to have a Common or Utilities section.
      Yes it would be good to allow the compiler to pick up subfolders used for common open source

      Also for deployment it would be nice to chose the target directory - and make sure a reference is added so they are in context of any assembly etc
      MicroTrends
      NinjaTrader Ecosystem Vendor - micro-trends.co.uk

      Comment


        #4
        Thanks for your suggestions. Added as #326 to the list.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X