• 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

Changing the label of cell header Market Analyzer

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

    Changing the label of cell header Market Analyzer

    Hi @all,

    I have an indicator that changes his mode depending on a parameter input value. This change should be illustrated on the column label so that I'm able to observe how the output in cell should be interpreted...

    e.g. Parameter name "Rank" - > Value from 0...7
    0 -> "VWAP SMA xy"
    1 -> "RSI Calc."
    ......

    I would like to see if Rank == 1 the Column should named "RSI Calc."

    Any ideas?
    Many thx and have a successful trading day ;-)

    #2
    Hello mphilipp,

    Thanks for your post.

    The label field in the Market analyzer column is editable. When setting your indicator column parameter you can change the label at the same time to suit your needs. The label by default would reflect the indicators name, however, you can remove and or edit the label (under Set up section) to suit your needs.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul,
      knknwo taht I can do this manually, but I prefer to do it programmatically....
      That's what I like to do... I can't see the difference to modify the cell output in color or format, so why not the cell header... I think it's maybe an undocumented feature...

      Hope you can help me ;-)

      Cheers Markus

      Comment


        #4
        Hello Markus,

        Thanks for your reply.

        You can override the display name of the indicator which would change the column label. Reference: https://ninjatrader.com/support/help...isplayname.htm

        Example (labelNumber is an int):

        Code:
        		public override string DisplayName
        		{
            		get { 				
        				if (Labelnumber == 0)
        					return "VWAP SMA xy"; 
        				else if (Labelnumber == 1)
        					return "RSI Calc"; 
        				else
        					return "Other"; 
        			} 	
        		}
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by uiwislth, Yesterday, 11:25 PM
        0 responses
        4 views
        0 likes
        Last Post uiwislth  
        Started by Steve L, Yesterday, 10:04 PM
        0 responses
        3 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by marianfed, Yesterday, 09:47 PM
        0 responses
        5 views
        0 likes
        Last Post marianfed  
        Started by hir04068, Yesterday, 09:29 PM
        0 responses
        6 views
        0 likes
        Last Post hir04068  
        Started by iq200, 03-11-2018, 07:49 PM
        24 responses
        1,024 views
        0 likes
        Last Post mrlucky1x  
        Working...
        X