• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need copntrol over order of Indicators dialog groups / sections

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

    Need copntrol over order of Indicators dialog groups / sections

    I am not aware of any explicit ordering for "GroupName" categories. Minor experimenting makes me think they are still alphabetical, as in NinjaTrader 7.

    That would be fine if NT 8 did it the same way that NT 7 did, but NT 8 does not. The NT 7 way to control order is with leading tabs, which do not get printed. In NT 8 the tabs do get printed, meaning that the category labels are scattered all over. Not good.

    We need either an explicit ordering mechanism or else alphabetizing but with suppression of leading tabs for output onto the dialog.

    --EV
    Last edited by ETFVoyageur; 08-03-2015, 12:11 AM.

    #2
    Please let me know if the NinjaTrader.Gui.CategoryOrder() attribute provided in the other thread does not provide you a solution.

    Code:
    [Gui.CategoryOrder("Strings", 0)]
    [Gui.CategoryOrder("Bools", 10)]
    [Gui.CategoryOrder("Ints", 20)]
    public class MyCustomIndicator : Indicator
    {
    	#region Properties	
    	[Display(GroupName="Ints")]
    	public int int_A
    	{ get; set; }
    	
    	[Display(GroupName="Ints")]
    	public int int_B
    	{ get; set; }
    
    	[Display(GroupName="Ints")]
    	public int int_C
    	{ get; set; }
    	
    	[Display(GroupName="Bools")]
    	public bool bool_A
    	{ get; set; }
    
    	[Display(GroupName="Bools")]
    	public bool bool_B
    	{ get; set; }
    	
    	[Display(GroupName="Bools")]
    	public bool bool_C
    	{ get; set; }
    
    	[Display(GroupName="Strings")]
    	public string string_A
    	{ get; set; }
    
    	[NinjaScriptProperty]
    	[Display(GroupName="Strings")]
    	public string string_B
    	{ get; set; }
    
    	[NinjaScriptProperty]
    	[Display(GroupName="Strings")]
    	public string string_C
    	{ get; set; }
            #endregion
    }
    MatthewNinjaTrader Product Management

    Comment


      #3
      Originally posted by NinjaTrader_Matthew View Post
      Please let me know if the NinjaTrader.Gui.CategoryOrder() attribute provided in the other thread does not provide you a solution.
      Yes, I saw the other thread, tried it, and it works. That is just what I am looking for. Thanks.

      --EV

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ralett, Today, 07:29 PM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by bboyle1234, Today, 10:46 PM
      0 responses
      1 view
      0 likes
      Last Post bboyle1234  
      Started by swcooke, Today, 04:29 PM
      0 responses
      4 views
      0 likes
      Last Post swcooke
      by swcooke
       
      Started by bboyle1234, Today, 04:27 PM
      0 responses
      2 views
      0 likes
      Last Post bboyle1234  
      Started by swcooke, Today, 03:31 PM
      2 responses
      11 views
      0 likes
      Last Post swcooke
      by swcooke
       
      Working...
      X