PROTECTED SOURCE SCRIPT

LQL Legend Table

8
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

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.