Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Toggle Global Lines Drawn on Multiple Charts

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

    Toggle Global Lines Drawn on Multiple Charts

    Hi!

    I have three different time-based candlestick charts. On each of them, I draw a few horizontal lines that I want to show on each other chart with the same ticker.

    Occasionally, there's a thick confluence of lines. I need a script that toggles the visibility of the lines belonging to the same group, namely those from the generating chart that I'd rather switch off.

    I usually modify or adapt indicator code, but I don't have a clue about how to proceed.

    Any suggestions will be welcome!

    #2
    Hello Gianpiero,

    Thank you for your post.

    There is a script on the user app share that does something similar to what you're describing, it's a toolbar that gives the ability to toggle on/off drawings on charts.

    I recommend taking a look at this script as an example:

    Updated: March 12th, 2017 This is an indicator that adds a toolbar to the main menu area of each chart window. It will add 4 buttons to every tab in the window to perform the following functions: A button to toggle on / off all drawing items in the currently selected tab by switching "visible […]


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem, LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Let me know if I may be of further assistance.

    Comment


      #3
      Thank you! I knew of the toggle indicator. The only problem is that it's not selective; it simply makes disappear all the drawings (and/or indicators), while I'd like to toggle the visibility of a group of lines, leaving all the others untouched. I guess I need to tinker with the indicator you suggest. Each group of lines has a style template associated. How should I change the existing script to allow the selection of lines associated with a template?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      559 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 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
      546 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X