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
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)
Perpustakaan Pine
Dalam semangat TradingView sebenar, penulis telah menerbitkan kod Pine ini sebagai perpustakaan sumber terbuka supaya pengaturcara Pine lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau dalam penerbitan sumber terbuka lain, tetapi penggunaan semula kod ini dalam penerbitan adalah dikawal selia oleh Peraturan Dalaman.
Penafian
Perpustakaan Pine
Dalam semangat TradingView sebenar, penulis telah menerbitkan kod Pine ini sebagai perpustakaan sumber terbuka supaya pengaturcara Pine lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau dalam penerbitan sumber terbuka lain, tetapi penggunaan semula kod ini dalam penerbitan adalah dikawal selia oleh Peraturan Dalaman.