thetradingbot

TTB_TableBuilder

Library "TTB_TableBuilder"
A helper library to make it simpler to create tables in pinescript

DefaultDarkStyle()

method Size(this, width, height)
  Change the size (width, height) of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    width (int)
    height (int)
  Returns: Cell

method Size(this, width, height)
  Change the width of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    width (int)
    height (int)
  Returns: Row

method Width(this, width)
  Change the width of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    width (int)
  Returns: Cell

method Width(this, width)
  Change the width of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    width (int)
  Returns: Row

method Height(this, height)
  Change the height of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    height (int)
  Returns: Cell

method Height(this, height)
  Change the height of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    height (int)
  Returns: Row

method Text(this, text_)
  Change the text of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    text_ (string)
  Returns: Cell

method Text(this, c0, c1, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29)
  Set text
  Namespace types: Row
  Parameters:
    this (Row)
    c0 (string): ... c29
    c1 (string)
    c3 (string)
    c4 (string)
    c5 (string)
    c6 (string)
    c7 (string)
    c8 (string)
    c9 (string)
    c10 (string)
    c11 (string)
    c12 (string)
    c13 (string)
    c14 (string)
    c15 (string)
    c16 (string)
    c17 (string)
    c18 (string)
    c19 (string)
    c20 (string)
    c21 (string)
    c22 (string)
    c23 (string)
    c24 (string)
    c25 (string)
    c26 (string)
    c27 (string)
    c28 (string)
    c29 (string)
  Returns: Row

method TextSize(this, text_size)
  Change the text size of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    text_size (string)
  Returns: Cell

method TextSize(this, text_size)
  Set text size
  Namespace types: Row
  Parameters:
    this (Row)
    text_size (string)
  Returns: Row

method TextColor(this, c)
  Change the text color of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    c (color)
  Returns: Cell

method TextColor(this, text_color)
  Change the text color of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    text_color (color)
  Returns: Row

method Bg(this, c)
  Change the background color of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    c (color)
  Returns: Cell

method Bg(this, bg)
  Change the background color of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    bg (color)
  Returns: Row

method Font(this, text_font_family)
  Change the font family of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    text_font_family (string)
  Returns: Cell

method Font(this, text_font_family)
  Change the width of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    text_font_family (string)
  Returns: Row

method AlignH(this, halign)
  Change the horizontal align of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    halign (string)
  Returns: Cell

method AlignH(this, halign)
  Change the horizontal align of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    halign (string)
  Returns: Cell

method AlignV(this, valign)
  Change the vertical align of the table cell.
  Namespace types: Cell
  Parameters:
    this (Cell)
    valign (string)
  Returns: Cell

method AlignV(this, valign)
  Change the vertical of all cells in that row
  Namespace types: Row
  Parameters:
    this (Row)
    valign (string)
  Returns: Cell

method C(this, column)
  Get the cell corresponding to the column number
  Namespace types: Row
  Parameters:
    this (Row)
    column (int)
  Returns: Cell

method C(this, column, row)
  Namespace types: Table
  Parameters:
    this (Table)
    column (int)
    row (int)

method R(this, row)
  Namespace types: Table
  Parameters:
    this (Table)
    row (int)

method Style(this, style)
  Namespace types: Table
  Parameters:
    this (Table)
    style (TableStyle)

method Position(this, position)
  Namespace types: Table
  Parameters:
    this (Table)
    position (string)

new(position, columns, rows, style)
  Parameters:
    position (string)
    columns (int)
    rows (int)
    style (TableStyle)

CellStyle
  Fields:
    text_color (series__color)
    text_halign (series__string)
    text_valign (series__string)
    text_size (series__integer)
    bgcolor (series__color)
    tooltip (series__string)
    text_font_family (series__string)

TableStyle
  Fields:
    bgcolor (series__color)
    frame_color (series__color)
    frame_width (series__integer)
    border_color (series__color)
    border_width (series__integer)
    default_cell_style (|CellStyle|#OBJ)

Cell
  Fields:
    ref (series__table)
    column (series__integer)
    row (series__integer)

Row
  Fields:
    ref (series__table)
    row (series__integer)
    cells (array__|Cell|#OBJ)

Table
  Fields:
    body (series__table)
    rows (array__|Row|#OBJ)

파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.