PINE LIBRARY
Updated StrategyMatrixLib

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
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
v2Release Notes
v3Updated:
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
v4Release Notes
v5Release Notes
v6Release Notes
v7Release Notes
v8Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
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.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
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.