PINE LIBRARY
Cập nhật

lib_input_enum

577
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)
Phát hành các Ghi chú
v2 added method declaration, to be able to use to_xxx functions after the input.enum call ( thanks Trendoscope )

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.