Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Suggestion: the context menu of "addons" in the editor to include "New file"

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

    Suggestion: the context menu of "addons" in the editor to include "New file"

    Hi,
    Since addons allow us to add common classes, enums, etc that are typically organized in files that aren't addons (meaning aren't classes that derive AddOnBase), it would be helpful to quickly add new empty files, with just common using header and the namespace. Developing in Visual Studio allows to do that easily, but I think it would be helpful if the main editor interface would allow that as well.

    Thanks,
    Ben

    #2
    Hello Ben,

    Thank you for your post.

    I will forward this to our development team. Thank you for the suggestion.

    Comment


      #3
      Ben, could I ask you to confirm I understand your request before I send it over?

      In my screenshot of the SMA in VS, is this what you mean but for the NS editor?
      Attached Files

      Comment


        #4
        Ben,

        I was looking over this with a colleague and we thought you may actually be referring to the following:
        Code:
        namespace NinjaTrader.NinjaScript.AddOns
        {
        	public class Test1460975 : NinjaTrader.NinjaScript.AddOnBase
        	{
        		protected override void OnStateChange()
        		{
        			if (State == State.SetDefaults)
        			{
        				Description							= @"Enter the description for your new custom Add on here.";
        				Name								= "Test1460975";
        			}
        			else if (State == State.Configure)
        			{
        			}
        		}
        	}
        }
        
        [B]namespace NinjaTrader.NinjaScript.Indicators
        {
        	
        }
        
        namespace NinjaTrader.NinjaScript.Strategies
        {
        	
        }[/B]
        Please let us know with any specifics or screenshots you can provide.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by AaronKoRn, Today, 09:49 PM
        0 responses
        6 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Today, 08:42 PM
        0 responses
        9 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        10 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,976 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Working...
        X