PINE LIBRARY
Updated

StrategyMatrixLib

87
Library "StrategyMatrixLib"

render_matrix(posStr, digits, bgCol, headBg, headTxt, valCol, valTxt)
  Renders a strategy performance matrix (table) using strategy.* and strategy.closedtrades.*
  Parameters:
    posStr (string): Table anchor position: "Top Left" | "Top Right" | "Bottom Left" | "Bottom Right"
    digits (int): Decimal places for numeric formatting
    bgCol (color): Background color for non-header cells
    headBg (color): Background for header rows
    headTxt (color): Text color for header rows
    valCol (color): Background for value cells
    valTxt (color): Text color for value cells
  Returns: table id The created/updated table ID
Release Notes
v2
Release Notes
v3

Updated:
render_matrix(posStr, digits, bgCol, headBg, headTxt, valCol, valTxt)
  Renders a strategy performance matrix table.
  Parameters:
    posStr (string): "Top Left" | "Top Right" | "Bottom Left" | "Bottom Right"
    digits (int): Decimal places for numeric formatting
    bgCol (color): Background for non-header label cells
    headBg (color): Background for header rows
    headTxt (color): Text color for header rows
    valCol (color): Background for value cells
    valTxt (color): Text color for value cells
  Returns: table id (so caller can hold the table if desired)
Release Notes
v4
Release Notes
v5
Release Notes
v6
Release Notes
v7
Release Notes
v8

Disclaimer

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.