PINE LIBRARY

table_theme_lib

Table Theme Library

A comprehensive library for creating consistently styled tables across different indicators and strategies. Provides preset themes and specialized table styles for various use cases like scanners and statistics displays.
Each preset includes carefully chosen color schemes for both dark and light themes, ensuring optimal visibility and consistency across different chart themes.

Features:
  • Dark and Light theme support for optimal visibility
  • Scanner table presets with condition highlighting
  • Scanner table presets with divergence indicators
  • Statistical table presets (basic style)
  • Shaded statistical table presets for value-based display
  • Bordered statistical table presets for emphasis
  • Up/Down condition color schemes
  • Confirmed/Failed signal highlighting
  • Active/Inactive state indicators
  • Human-readable timeframe formatting utility
  • Consistent styling across different chart themes
  • Customizable text sizes for headers and cells


Usage Example:


Available Presets:
  • load_scanner_table_preset() - For basic scanner tables
  • load_scanner_table_preset_div() - For scanner tables with divergence indicators
  • load_stat_table_preset() - For basic statistical tables
  • load_shaded_stat_table_preset() - For statistical tables with value-based shading
  • load_bordered_stat_table_preset() - For tables with border emphasis


Utility Functions:
  • get_timeframe_as_readable() - Converts timeframe strings to human-readable format


get_timeframe_as_readable(my_timeframe)
  Parameters:
    my_timeframe (string)

load_scanner_table_preset(preset_mode, header_bg_color, border_color, header_text_color, cell_def_bg, cell_up_conf_bg, cell_dn_conf_bg, cell_text_def, cell_text_active, cell_text_failed, cell_text_up, cell_text_dn, cell_text_up_conf, cell_text_dn_conf, frame_color, header_text_size, cell_text_size)
  Parameters:
    preset_mode (string)
    header_bg_color (color)
    border_color (color)
    header_text_color (color)
    cell_def_bg (color)
    cell_up_conf_bg (color)
    cell_dn_conf_bg (color)
    cell_text_def (color)
    cell_text_active (color)
    cell_text_failed (color)
    cell_text_up (color)
    cell_text_dn (color)
    cell_text_up_conf (color)
    cell_text_dn_conf (color)
    frame_color (color)
    header_text_size (int)
    cell_text_size (int)

load_scanner_table_preset_div(preset_mode, header_bg_color, border_color, header_text_color, cell_def_bg, cell_up_conf_bg, cell_dn_conf_bg, cell_text_def, cell_text_active, cell_text_failed, cell_text_up, cell_text_dn, cell_text_up_conf, cell_text_dn_conf, frame_color, div_hid, div_reg, div_hid_conf, div_reg_conf, header_text_size, cell_text_size)
  Parameters:
    preset_mode (string)
    header_bg_color (color)
    border_color (color)
    header_text_color (color)
    cell_def_bg (color)
    cell_up_conf_bg (color)
    cell_dn_conf_bg (color)
    cell_text_def (color)
    cell_text_active (color)
    cell_text_failed (color)
    cell_text_up (color)
    cell_text_dn (color)
    cell_text_up_conf (color)
    cell_text_dn_conf (color)
    frame_color (color)
    div_hid (color)
    div_reg (color)
    div_hid_conf (color)
    div_reg_conf (color)
    header_text_size (int)
    cell_text_size (int)

load_stat_table_preset(preset_mode, header_text_size, cell_text_size)
  Parameters:
    preset_mode (string)
    header_text_size (int)
    cell_text_size (int)

load_shaded_stat_table_preset(preset_mode, header_text_size, cell_text_size)
  Parameters:
    preset_mode (string)
    header_text_size (int)
    cell_text_size (int)

load_bordered_stat_table_preset(preset_mode, header_text_size, cell_text_size)
  Parameters:
    preset_mode (string)
    header_text_size (int)
    cell_text_size (int)
colorsdisplaystatistics

Perpustakaan pine

Dengan semangat TradingView yang sesungguhnya, penulis telah menerbitkan Kode Pine ini sebagai pustaka sumber terbuka sehingga programmer Pine lain dari komunitas kami dapat menggunakannya kembali. Hormat untuk penulis! Anda dapat menggunakan pustaka ini secara pribadi atau dalam publikasi sumber terbuka lainnya, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib.

Pernyataan Penyangkalan