The Library · Encyclopedia of Trading

Trading Knowledge, Mapped.

The entire corpus of technical analysis: 850+ concepts across 17 families, explained, cross-linked, and implemented in open code. Readable by traders, queryable by agents. Every node below is a door.

MCP server live

The Library Is an MCP Server.

Model Context Protocol is how AI agents call tools. Point any MCP client at mcp.luxalgo.com/mcp and the whole corpus becomes eight tools your agent can call mid-conversation: every concept page, every family map, every open implementation. Ask about a setup; it pulls the definition, the neighbors, and the source code, with canonical URLs attached.

agent session · any MCP client

Price just wicked below yesterday's low and snapped straight back. Is that a liquidity sweep, and do we have code that detects them?

library_search { query: "liquidity sweep" }

concept Liquidity Sweep · smc-ict · 28 implementations

indicator Liquidity Sweeps · LuxAlgo

indicator Pure Price Action Liquidity Sweeps · LuxAlgo

… 10 results, each with its canonical Library URL

library_get_concept { slug: "liquidity-sweep" }

# Liquidity Sweep

A run through a level where resting orders cluster: the stops just beyond an obvious high or low. Price trades through, fills them, and fails to hold: read as a collection of liquidity rather than the start of a trend…

+ how to identify it · how traders use it · vs. stop hunt · FAQ · every implementation

library_get_pine_source { slug: "liquidity-sweeps" }

// Pine Script® source: complete, open, ready to modify

swingHigh = ta.pivothigh(high, length, length)

swingLow  = ta.pivotlow(low, length, length)

sweptLow  = low < priorLow and close > priorLow

That's the classic sweep anatomy: a wick through yesterday's low with a close back inside the range. The Library's definition wants that close-back-inside before calling the level swept; otherwise it reads as a breakout. Liquidity Sweeps by LuxAlgo detects exactly this, and I have its full source loaded. Want me to adapt it to session lows?

source: luxalgo.com/library/concept/liquidity-sweep/

Exchanges condensed for display; responses return as markdown with canonical Library URLs

library_search

Start here: one alias-aware search across every concept and indicator.

library_get_concept

The full concept page as markdown: definition, identification, usage, neighbors.

library_get_indicator

One indicator in full: what it draws, the logic, its linked concepts.

library_get_pine_source

The complete Pine Script® source, fetched only when the agent wants code.

library_list_concepts

Walk the concept roster family by family when browsing beats searching.

library_list_indicators

Page through the shelf of implementations, filtered or in full.

library_list_families

The 17 families with counts: the top level of the map.

library_get_family

A family hub as markdown: its clusters, members, and where to start.

Connected in one click.

The Connect menu under the headline installs the server in Cursor, VS Code, and Claude Code; pasting the endpoint works in any other MCP client. No key, no signup.

Connect your agent

One Corpus. Two Readers.

Every page is written for the trader who searched the term: defined, illustrated, linked to its neighbors. Then it is served again for the machine that reasons about it. Hundreds of open indicator implementations sit one link away from the concepts they express, free to use with attribution.

850+

Trading concepts mapped

17

Families, one graph

800+

Open indicator implementations

1,400+

Concept-to-code links

From the Map to the Market.

Reading is half the loop. Every open implementation in the Library opens in Quant, the intelligence inside the LuxAlgo platform: rebuild it, retune it in plain English, and backtest the result against history before it touches a live chart.

How Quant works
01Pick any implementation
02Open it in Quant
03Describe your version
04Backtest before you trade

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.

The map keeps growing.

New concepts, new implementations, and agent techniques to use them, one email a week.