Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            578 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X