Library "lib_input_enum" some enum wrappers for style identifiers, that can be used in input.enum calls to have nicer dropdown names
to_size(select) converts Size enum to builtin size.tiny / size.small / etc., ideally used around input: to_size(input.enum(Size.SMALL, ....)) Parameters: select (series Size)
to_size(select) converts a string key to builtin size.tiny / size.small / etc., ideally used around input: to_size(input.string('small', ...., ['tiny', 'small', 'normal', 'large', 'huge', 'auto'])) Parameters: select (string)
reduce_size(select) converting a builtin size identifier to one instance smaller (except tiny and auto) Parameters: select (string)
to_linestyle(select) converts LineStyle enum to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.enum(LineStyle.SOLID, ....)) Parameters: select (series LineStyle)
to_linestyle(select) converts a string key to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.string('solid', ...., ['solid', 'dashed', 'dotted'])) Parameters: select (string)
to_labelstyle(select) converts LineStyle enum to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.enum(LineStyle.SOLID, ....)) Parameters: select (series LabelStyle)
to_labelstyle(select) converts a string key to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.string('solid', ...., ['solid', 'dashed', 'dotted'])) Parameters: select (string)
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.