machdragon

SymMatrixTable

machdragon מעודכן   
Simple Example Table for Displaying Price, RSI, Volume of multiple Tickers on selected Timeframe

Displays Price, RSI and Volume of 3 Tickers and Timeframe selected by user input

Conditional Table Cell coloring
Price color green if > than previous candle close and red if < previous candle close
RSI color green if < 30 and red if > 70 (RSI14 by default)
Volume color green if above average volume and red if less than that (SMA20 volume by default)

Can turn on/off whole table, header columns, row indices, or select individual columns or rows to show/hide

// Example Mixed Type Matrix To Table //
access the simple example script by uncommenting the code at the end

Basically I wanted to have the headers and indices as strings and the rest of the matrix for the table body as floats, then conditional coloring on the table cells
And also the functionality to turn rows and columns on/off from table through checkboxes of user input

Before I was storing each of the values separately in arrays that didn't have a centralized way of controlling table structure

so now the structure is :
- string header array, string index array
- float matrix for table body
- color matrix with bool conditions for coloring table cells
- bool checkboxes for controlling table display

הערות שחרור:
Updated example code description comments for better readability/simplicity
No changes to script functionality

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?