I’m creating my own TradingView indicator in Pine Script, but currently all the values like EMA length, RSI period, colors, and other settings are hardcoded.
I want users to be able to change these values directly from the indicator settings without editing the code every time.
Is there any way to create input boxes, dropdowns, checkboxes, or color pickers in Pine Script?
Once these inputs are created, users can change them anytime by opening:
-Indicator Settings
-> Inputs
There is no need to edit or save the Pine Script again.
Using inputs is considered a best practice because it makes your indicator reusable and user-friendly. Instead of creating multiple versions of the same indicator with different values, you can create one configurable indicator that users can customize according to their trading style.