Skip to content
ChartDeck ChartScript docs Account Open the terminal

Cookbook

Complete ChartScript recipes to copy, run and change - on price, order flow, liquidations and positioning, linked scripts, levels, tables, alerts and backtests.

Every recipe is a whole script that compiles and runs as it is. Copy it with Copy, or press Open in editor to start a new unsaved script from it, then change it until it is yours.

Each recipe has the same parts:

  1. The script: the complete code.
  2. How it works: the few ideas that make it tick, in order.
  3. Customize it: small changes worth trying.
  4. Run it: which charts, markets and plans it needs, and what it shows when its data is missing.
  5. Concepts used: the pages to read for more.

Within each group the recipes go from short and simple to longer and more advanced. The data recipes say which plan and which markets they need; every one still compiles and runs without its data, and then shows an empty pane or says why in its legend row.

#On price

Candles only: every market, every plan. Open the group.

RecipeWhat it doesWhat it teaches
EMA ribbon with a trend tintFour EMAs colored by how they are stackedta.ema, conditional colors, fill
Volatility bands and squeezesATR bands shaded while the Bollinger Bands fit insidetuples, [1], alert.on
Anchored VWAP from a dateA VWAP and its bands from a moment you pickinput.time, state sums
Session rangesA growing box per trading sessionsessions, functions with state, boxes
Higher-timeframe trend filterSignals kept only with the higher timeframe's trendrequest.tf, confirmed bars

#Order flow

Taker flow per bar, per trade and per price row. Open the group.

RecipeWhat it doesWhat it teaches
Delta spikesTaker delta columns with unusual bars markedflow.delta, relative thresholds
Big prints on the chartA dot for every large trade, sized by valueflow.prints, flow.print_threshold, labels
CVD divergenceHigher highs or lower lows that CVD does not confirmflow.cvd, pivots, ta.valuewhen
Absorption from footprintsHeavy selling at the low that still closed high (Pro)fp.* per-bar values
Stacked-imbalance zonesFootprint stacks kept as zones until price closes through (Pro)fp.stacks, user types, arrays of boxes

#Liquidations and positioning

Open interest, funding, the liquidation model and Hyperliquid positions. Open the group.

RecipeWhat it doesWhat it teaches
Open interest against priceWho is acting: longs or shorts opening or closingoi.close, oi.usd, bgcolor
Funding extremesAnnualized funding and its z-scorefunding.rate, ta.stdev
Liquidation levels near the priceThe nearest long and short levels and their distanceliq.levels, lines, legend items
Hyperliquid net longs and shortsPositions opened minus closed by Hyperliquid takers (Plus and up)hl.*, hl.coverage

#Linking scripts

One script shares, others read. Open the group.

RecipeWhat it doesWhat it teaches
Share a trend scoreA producer of a score, a flag and flip eventsshare.series, share.event
Filter signals with a linked trendAn RSI filtered by the linked trendlink.script, link.confirmed, ready
Let the member pick the trend sourceThe producer chosen in the settingsinput.script, needs
Share levels and draw them elsewherePrior-day levels shared and their breaks markedshare.level, h.levels, point in time

#Levels, tables and alerts

Summaries, named levels and messages. Open the group.

RecipeWhat it doesWhat it teaches
Heads-up tableMove, RSI, ATR, volume, taker share, OI and funding in one cornertables, na as "-"
Prior-day levels as level tagsYesterday's high, low, close and today's openrequest.tf, tag.new
Round numbers near the priceThe nearest round numbers, kept tidya pool of tags, Auto placement
Alerts with their own numbersAlert messages with placeholders and code-built textalert.on, alert.send

#Signals and backtests

Measuring an idea honestly in an indicator. Open the group.

RecipeWhat it doesWhat it teaches
A simple backtest in REMA-cross trades with stop, target and cost, results in Rtracking a position in state
Forward returns after a signalThe move after a signal next to the move after any barbaselines, state arrays

#Walk-throughs

Longer tutorials that build one indicator step by step, explaining every line.

TutorialWhat you build
Moving average ribbonFive EMAs, filled and colored by how they are stacked
RSI divergence marksAn RSI pane with pivot-based divergence marks
Volume spikesA volume pane with spikes and alerts
Session high and lowThe day's or a session's high and low as lines with labels
Multi-timeframe trendA higher-timeframe EMA without repainting
Dashboard tableA corner table of trend, RSI and ATR

#If a recipe does not work

  • Nothing is drawn. Check the legend row: a data recipe says there when its data is missing on this market or plan. Try a Binance perpetual chart.
  • A red underline in the editor. You changed something: the Problems tab names the line, and each code links its page in Error messages.
  • A linked recipe says "Waiting for…" or "No access". Save the producer first, under the name its indicator(...) gives.

#All pages

Next

The ChartScript documentation is in English for now; translations will follow.