LootX

LootScript Language

Updated September 30, 2026 This page as PDF

What LootScript is: indicators, strategies and libraries that run directly in the terminal on chart data. What data is available, how to enable scripts, and what they don't do.

LootScript is the scripting language of the LootX terminal. You write your own indicators, strategies for backtesting ideas on history, and libraries of shared functions. A script is a text file that runs directly in the terminal on the data of the chart you’ve added it to: candles, volume, delta, footprint clusters, open interest, funding rate.

Here’s a complete indicator — the delta of each bar as columns under the chart:

Loot
indicator("Bar Delta", overlay = false)

d = delta.available ? delta.value : na
plot(d, "Delta", style = plot.style_columns, color = d >= 0 ? color.teal : color.red)

What you can write

The first line of a script declares its kind, and the kind determines what the script is allowed to do.

Kind First line What it does
Indicator indicator("Name") Calculates values per bar and draws them: lines, histograms, levels, markers, background, labels. Draws on the price or in a separate panel under the chart.
Strategy strategy("Name") Same as an indicator, plus entry and exit rules. Strategy orders are virtual — the Strategy Tester executes them on history and shows trades, equity curve and metrics.
Library library("Name", 1) Stores functions that your other scripts import. Not added to a chart and draws nothing.

Besides your own scripts, you can bring over existing Pine Script files: the terminal converts them to LootScript on import. How this works and what to check after conversion — on the Pine Script import page.

What data the script has access to

  • Chart candles: open, high, low, close, volume, bar time and derivatives like hl2.
  • Order flow: aggressive buyer and seller delta, footprint clusters by price level, open interest, funding rate, recorded order book history, screener metrics.
  • Live order book and time and sales — only on the current, not yet closed bar: their history is not recorded.
  • Other timeframes and instruments — via a series request from a higher timeframe or another coin.

If an exchange doesn’t provide a certain metric or there is no data for a bar, the script receives not zero but a special value na — “no value”. On the chart this is a line break, not a false zero. Details and coverage by exchange — on the Market data page.

Where the script runs

The script runs inside the terminal on your computer. It is not sent to or executed on the LootX server.

  • Isolation. The script has no access to the network, files, exchange connections or API keys. Such functions simply don’t exist in the language — neither accidentally nor intentionally can the script transmit your data anywhere.
  • Limits. An overly long loop or a huge array stops only that script. Other indicators, panels and the terminal itself keep working, and the reason for stopping is shown in the editor.
  • Files. Each script is a separate file with the .loot extension. On Windows they are stored in %APPDATA%\TradingTerminal\scripts\, outside the installation folder, so terminal updates don’t touch them. Moving a script to another computer means copying the file.

How to enable scripts

Scripts are a separate module that is enabled for your LootX account. For it to work, sign in to the terminal with your account.

When the module is enabled, the chart indicators window (the ƒ button on the chart panel) shows the sections Favorites, My scripts, Built-in and Strategies, and at the top — the Import… and Editor… buttons.

When the module is not enabled, scripts are not shown at all: the indicators window contains only built-in indicators, with no editor or import. There are also no locks or purchase offers — the terminal looks as if scripts don’t exist in it. As soon as access appears, the indicators window rebuilds itself; you don’t need to restart the terminal.

Access is granted per account — as part of a plan or separately. Current plans are on the Subscriptions page.

What scripts don’t do

  • Does not go online or read files. Everything the script knows is the data of the chart it is on.
  • Is not published or sold. There is no script catalog: a script is your local file; you can share it only by passing the file.
  • Does not execute Pine Script directly. Scripts in that format are first converted to LootScript on import; identical numbers with other platforms are not guaranteed.

Next

FAQ

Can a LootScript script trade on the exchange?
No. A strategy only places virtual orders, which the Strategy Tester executes on historical data. The language has no function for sending a real order, and scripts have no access to connections or API keys.
Why doesn't the indicators window have an editor or a “My Scripts” section?
Scripts are a separate module, and it isn't enabled for your account. Without it, the terminal only shows built-in indicators. Once enabled, the window will rebuild itself without a restart.
Where are my scripts stored?
Each script is a .loot file. On Windows they're in the %APPDATA%\TradingTerminal\scripts\ folder, outside the installation folder, so updates don't touch them.
Does a script run on LootX servers?
No, it runs only in the terminal on your computer. A script has no access to the network or files.