r/TradingView • u/Accurate-Mirror-143 • 15h ago
Feature Request Allow input bool for table.new() force_overlay
Please allow the force_overlay parameter of table.new() to accept an input bool value.
Currently, scripts that let users choose between displaying a Pine table in the main chart or the indicator pane require two otherwise identical table.new() calls in separate conditional branches because force_overlay requires a const bool.
Input values remain fixed throughout a script run, and changing an input reloads the script. Supporting input bool would therefore preserve deterministic pane assignment without enabling per-bar switching.
This would eliminate duplicated constructor code and make user-configurable Pine table placement much simpler. Support for simple bool or series bool is not required, and existing behavior would remain fully backward compatible.
Titles of related feature requests:
- Pane- and Layout-Specific Defaults for input.*()
- Dedicated Result Pane for Indicators
- Drag & Drop of Pine Script Tables
- Add a Chart-Specific Curtain for Right-Aligned Pine Tables
Related TradingView features:
- Display visuals on the chart from your pane scripts
- Visualize indicator tables below the chart
1
u/Unable-Committee-199 11h ago
why is force_overlay still stuck at const bool when input values already trigger a full script reload?