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 Kaledus, Today, 01:29 PM
        0 responses
        3 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by PaulMohn, Today, 12:36 PM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by yertle, Yesterday, 08:38 AM
        8 responses
        36 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by rdtdale, Today, 01:02 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by alifarahani, Today, 09:40 AM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X