Indicator Lab

Write custom indicators in a concise array formula language — price arrays H L O C V, data series like MKTCAP / DATE, overloaded operators and 37 built-in functions, computed by a WASM engine and rendered on TradingView lightweight-charts. Try H+L, MA(C,5) or a preset below.

Loading WASM engine…
Symbol
Interval
Loading WASM indicator engine…
Built-in indicators (click to load)
Formula editorCtrl+Enter to run
Syntax cheat sheet

H L O C V — high / low / open / close / volume arrays (one value per bar of the loaded period)

Data series — extra raw data beyond OHLCV, referenced by name and auto-loaded/aligned to the bars (DATE/TIME are UTC; CoinGecko series are daily and forward-filled on intraday charts):

  • DATEPer-bar date as a YYYYMMDD number (UTC), e.g. 20260823.
  • TIMEPer-bar time as an HHMM number (UTC), e.g. 1430.
  • MKTCAPCoinGecko historical market cap (USD). Daily granularity — on intraday charts it is a day-level step.
  • TVOLCoinGecko aggregate volume across all exchanges (USD, daily) — unlike V, which is the listed exchange only.

NAME:=expr; intermediate variable · NAME:expr; plotted output (can be referenced by later lines)

+ - * / arithmetic · > < >= <= = == <> != comparisons returning 0/1 · & && AND logical and · | || OR logical or

Plot hints: ,overlay on the price pane · ,stick histogram · ,color=#f0b90b

Comments: { } blocks and // lines; bars without enough history stay blank.

Function reference (0)

Volume for crypto — live chart, free in your browser

Volume is the fuel behind price moves: breakouts on heavy volume tend to hold, while the same price pattern on thin volume often reverses. This preset plots raw volume bars together with their 5-bar and 10-bar averages, so unusual activity jumps out immediately against recent norms.

Common reads include volume spikes at trend reversals, steady expansion during a sustained move, and drying-up volume inside a range. The volume data comes from the same real exchange candles as the price chart, and the WASM engine computes the averages locally in your browser.

How it works

  1. Pick any trading pair and an interval from 15 minutes to 1 day.
  2. The preset formula loads into the editor — every line stays visible and editable.
  3. The WASM engine evaluates it locally over up to 1000 real exchange candles.
  4. Results render instantly as price-pane overlays or sub-panes.

Frequently asked questions

Why is volume important in crypto trading?

Volume tells you how much conviction sits behind a price change. A 5% rally on triple the average volume signals broad participation; the same rally on a fraction of average volume is more likely to be a thin-market wick that fades.

What do the VOL MA5 and VOL MA10 lines show?

They are the 5-bar and 10-bar moving averages of volume — a rolling "normal" level. Volume bars persistently above both lines mark an active regime; bars shrinking below both mark quiet, directionless tape where breakout signals deserve extra skepticism.

More indicator lab pages

RSI · MACD · KDJ · Bollinger Bands · Moving Averages · Bias · Williams %R · Rate of Change · MA Cross Signals

Related tools

Moving Averages in the Indicator Lab · MA Cross Signals in the Indicator Lab