Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 tkaboris, Today, 08:01 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Lumbeezl, 01-11-2022, 06:50 PM
        31 responses
        817 views
        1 like
        Last Post NinjaTrader_Adrian  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by swestendorf, Today, 11:14 AM
        2 responses
        6 views
        0 likes
        Last Post NinjaTrader_Kimberly  
        Started by Mupulen, Today, 11:26 AM
        0 responses
        7 views
        0 likes
        Last Post Mupulen
        by Mupulen
         
        Working...
        X