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, 01: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 frslvr, 04-11-2024, 07:26 AM
      8 responses
      111 views
      1 like
      Last Post NinjaTrader_BrandonH  
      Started by stafe, 04-15-2024, 08:34 PM
      10 responses
      44 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by rocketman7, Today, 09:41 AM
      3 responses
      8 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by traderqz, Today, 09:44 AM
      2 responses
      5 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by rocketman7, Today, 02:12 AM
      7 responses
      31 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X