PINE LIBRARY
Cập nhật Table_Utils

Library "Table_Utils"
Enhanced Table Utilities for Professional Dashboards V2.0
get_position(posStr)
Convert string to position constant
Parameters:
posStr (string): User-selected position string
Returns: Pine Script position constant
get_size(sizeStr)
Convert string to size constant
Parameters:
sizeStr (string): User-selected size string
Returns: Pine Script size constant
get_theme_color(scheme, colorType)
Get color from predefined palette
Parameters:
scheme (string): Palette name: "Cyberpunk", "Professional", "Pastel", "Dark"
colorType (string): Color role: "bull", "bear", "neutral", "bg", "border"
Returns: Color value
create_dashboard(posStr, cols, rows, scheme)
Create standard dashboard table with preset styling
Parameters:
posStr (string): Position string
cols (int): Number of columns
rows (int): Number of rows
scheme (string): Color scheme name
Returns: Configured table object
add_header_cell(tbl, col, row, text_, scheme)
Add header cell with preset styling
Parameters:
tbl (table): Table object
col (int): Column index
row (int): Row index
text_ (string)
scheme (string): Color scheme
add_data_cell(tbl, col, row, text_, value, scheme)
Add data cell with conditional coloring
Parameters:
tbl (table): Table object
col (int): Column index
row (int): Row index
text_ (string)
value (float): Numeric value for color coding
scheme (string): Color scheme
format_number(value, decimals)
Format number with appropriate suffix (K, M, B)
Parameters:
value (float): Number to format
decimals (int): Number of decimal places
Returns: Formatted string
format_percentage(value)
Format percentage with sign
Parameters:
value (float): Percentage value (as decimal, e.g., 0.05 = 5%)
Returns: Formatted string with % symbol
Enhanced Table Utilities for Professional Dashboards V2.0
get_position(posStr)
Convert string to position constant
Parameters:
posStr (string): User-selected position string
Returns: Pine Script position constant
get_size(sizeStr)
Convert string to size constant
Parameters:
sizeStr (string): User-selected size string
Returns: Pine Script size constant
get_theme_color(scheme, colorType)
Get color from predefined palette
Parameters:
scheme (string): Palette name: "Cyberpunk", "Professional", "Pastel", "Dark"
colorType (string): Color role: "bull", "bear", "neutral", "bg", "border"
Returns: Color value
create_dashboard(posStr, cols, rows, scheme)
Create standard dashboard table with preset styling
Parameters:
posStr (string): Position string
cols (int): Number of columns
rows (int): Number of rows
scheme (string): Color scheme name
Returns: Configured table object
add_header_cell(tbl, col, row, text_, scheme)
Add header cell with preset styling
Parameters:
tbl (table): Table object
col (int): Column index
row (int): Row index
text_ (string)
scheme (string): Color scheme
add_data_cell(tbl, col, row, text_, value, scheme)
Add data cell with conditional coloring
Parameters:
tbl (table): Table object
col (int): Column index
row (int): Row index
text_ (string)
value (float): Numeric value for color coding
scheme (string): Color scheme
format_number(value, decimals)
Format number with appropriate suffix (K, M, B)
Parameters:
value (float): Number to format
decimals (int): Number of decimal places
Returns: Formatted string
format_percentage(value)
Format percentage with sign
Parameters:
value (float): Percentage value (as decimal, e.g., 0.05 = 5%)
Returns: Formatted string with % symbol
Phát hành các Ghi chú
v2.1Phát hành các Ghi chú
v3Added:
create_dashboard_FO(posStr, cols, rows, scheme)
Parameters:
posStr (string)
cols (int)
rows (int)
scheme (string)
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
🚀 Unlock Freemium Indicators, In-Depth Technical Analysis, and Daily Economic Insights –> Join Our Exclusive I.R.M.O.C. Community on Telegram Today! LINK BELLOW 🚀
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.
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
🚀 Unlock Freemium Indicators, In-Depth Technical Analysis, and Daily Economic Insights –> Join Our Exclusive I.R.M.O.C. Community on Telegram Today! LINK BELLOW 🚀
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.