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

How to Remove Indicator Label Name within NinjaScript code?

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

    #16
    Originally posted by sledge View Post
    NT_JoyDeep has a chartcontrol command to sendkey to f5.. so you could issue that command within your code.

    i tried searching on "sendkey" and "f5" and "sendkey f5" and failed.


    Hopefully someone has it bookmarked.
    Nah, from a clean boot of Ninja, it works fine. I was just talking about from starting with a script that has it displayed, to modifying the code, to getting it to actually disappear, took a couple reloads. No need to forcefully cause a reload from within the script in this case.

    However, I've built a couple indicators/toolkits that use sendkeys in the past. Depending on the situation, I found it better to actually "click" on the menu items (through code) to activate them. Since users can change hotkeys, it makes it problematic to use sendkeys sometimes.

    Daniel

    Comment


      #17
      If I have a master strategy that uses several secondary indicators and both strategy and indicators have their ToString() overridden then I still get ALL labels, each for each study.

      Is there any way to hide the secondary indicator labels on chart but show the labels when those secondary indicators are added as stand-alone?

      Comment


        #18
        Hello,

        I haven't been able to reproduce on my end.

        When I add an indicator to a strategy. If the added indicator includes the following override it will not dispay the text

        Code:
        public override string ToString()
        {			
        	return "";
        }
        If this is what you're doing please provide me with two simple script files that work together to reproduce this error.
        LanceNinjaTrader Customer Service

        Comment


          #19
          Sorry, all ToString overrides return a string like Name + SomeVersion

          I would like this to be shown when an indicator is added manually but would like to hide it when an indicator is added by another study.

          Comment


            #20
            Unfortunately I dont know of any way to do this without creating a separate version of the indicator that would be called and one version that could be manually added.

            The called version would have the ToString() override in the last example, and the version that could be manually added would have a different override or no override.
            LanceNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by DayTradingDEMON, Today, 09:28 AM
            3 responses
            19 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Stanfillirenfro, Today, 07:23 AM
            9 responses
            23 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by George21, Today, 10:07 AM
            0 responses
            8 views
            0 likes
            Last Post George21  
            Started by navyguy06, Today, 09:28 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cmtjoancolmenero, Yesterday, 03:58 PM
            8 responses
            33 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X