PROTECTED SOURCE SCRIPT

LQL Legend Table

9
Following me on X - x.com/martypartymusic

LQL Legend Table draws a small legend table on your chart (overlay) so you can label your plotted lines/levels with:
• a color swatch (matches your line color)
• a label text (Column 1)
• an optional extra text (Column 2)

It’s meant to act like a persistent “key” for multi-line indicators (so users don’t have to guess what each color means).

Smart behavior
• Only renders on the last bar (so it doesn’t waste work on every historical bar).
• Automatically hides the “Extra” column if none of the enabled rows use it (so you get a cleaner 2-column layout by default).
• Only shows enabled rows, and packs them together (no gaps).

Options available (Inputs)

General
• Version (read-only display): shows the script version in settings.
• Show Legend Table: master toggle on/off.
• Top Buffer Rows (0–5): adds empty spacer rows above the legend.
• Bottom Buffer Rows (0–5): adds empty spacer rows below the legend.

Layout
• Table Position:
• Top Left / Top Center / Top Right
• Bottom Left / Bottom Center / Bottom Right

Styling
• Table Background: background color for the text cells.
• Font Color: text color.
• Font Size: Tiny / Small / Normal / Large

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.