PROTECTED SOURCE SCRIPT
LQL Legend Table

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
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
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.