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 Option Whisperer, 05-09-2024, 07:58 PM
        6 responses
        25 views
        0 likes
        Last Post Option Whisperer  
        Started by rayyyu12, Today, 05:38 PM
        0 responses
        12 views
        0 likes
        Last Post rayyyu12  
        Started by xepher101, Yesterday, 12:19 PM
        2 responses
        30 views
        0 likes
        Last Post xepher101  
        Started by thumper57, Today, 04:30 PM
        0 responses
        8 views
        0 likes
        Last Post thumper57  
        Started by OllieFeraher, 05-09-2024, 11:14 AM
        5 responses
        16 views
        0 likes
        Last Post MisterTee  
        Working...
        X