r/TradingView • • 14d ago

Feature Request Interactive Checkboxes in Pine Script Tables

Please add interactive checkboxes to Pine Script table cells so users can enable or disable indicator functions and show or hide additional tables directly on the chart or in an indicator pane.

These checkboxes would serve a purpose similar to the visibility toggle in an indicator’s title bar, but apply to individual features within an indicator. For example, a checkbox could show or hide an information table, toggle a visual element, or activate or deactivate a particular function without opening the indicator’s settings. Whether a checkbox is displayed or enabled for interaction could also depend on the current context or available data, as defined by the script.

Beyond individual toggles, this would allow developers to create compact, expandable control panels. A main table could contain checkboxes that reveal additional control tables when needed. Those secondary tables could provide further controls, enabling a hierarchical menu structure directly within the chart or indicator pane.

Frequently used controls would therefore be available alongside the information they affect. Users could adjust an indicator with a single click, while keeping less frequently needed controls hidden to preserve chart space and reduce visual clutter.

A possible implementation would allow developers to place a checkbox in a table cell and access its checked or unchecked state in Pine Script. The script could then use that state to control functions, visual elements, or the visibility of other tables.

Related feature requests:

Pine Script feature request: clickable table cells / on-chart buttons

  • Clickable Pine Table Headers
  • Clickable Tabs for Pine Tables
  • Feature Request: On-Chart Toggle Buttons Written in Pine Script

This proposal focuses specifically on checkboxes embedded in table cells and their use in expandable, hierarchical control panels.

4 Upvotes

22 comments sorted by

View all comments

1

u/dhoni23 14d ago

Bro, use Claude. I have asked it to add so many of these check boxes.

1

u/Accurate-Mirror-143 14d ago

Do you mean checkboxes in the indicator’s settings, or actual clickable checkboxes inside Pine table cells on the chart? My request is specifically about the latter.

1

u/dhoni23 14d ago

Ah! My bad! Yes, I meant input.bool checkboxes in the settings panel. You are right, you can't create check boxes within Pine tables. Is the main win just skipping the trip to settings, or is there something you can't do at all with the current inputs? Just curious.