ZilkFlo
Developers

FlowScript

The language ZilkFlo indicators are written in. Scripts run once per bar and draw on the chart. Write them in the chart's editor.

Overview

A FlowScript indicator is a script the chart runs from the first bar to the last, then once more on every live update. Each run sees the current bar through series such as close and high, and earlier bars through history: close[1] is the previous close.

Top-level code is the per-bar step. const names a value for this bar, let a variable you reassign, and state a value that carries over from one bar to the next. na is the missing value; most arithmetic with na gives na.

One compiler, two runtimes. In the browser a script compiles to WebAssembly and runs on a Web Worker, off the page's main thread. In the desktop app, and on the server where alerts are checked around the clock, the same script compiles to native machine code through the Rust runtime. Both give the same results, so an indicator behaves the same on the web, on the desktop, and when its alerts fire.

Your first script

Every script starts with a version line and an indicator(…) call naming it. overlay: true draws on the price chart; leave it out for a pane of its own. version: is the indicator's own release number, separate from the //@version language line.

//@version=1
indicator("Two averages", overlay: true, version: "1.0.0")

const fastLen = input.int(9, "Fast", min: 1)
const slowLen = input.int(21, "Slow", min: 1)

const fast = ta.ema(close, fastLen)
const slow = ta.sma(close, slowLen)

plot(fast, title: "Fast", color: color.blue)
plot(slow, title: "Slow", color: color.orange, width: 2)

The script runs top to bottom once per bar. plot puts a value on the chart for that bar; the line you see is those values joined up. Nothing is drawn by returning from the script.

Language basics

Comments are // to the end of the line and /* across lines */. Statements end at the line break; no semicolons. Blocks use braces and the indentation is yours.

  • Numbers: 42, 0.5, .5, 1e6. All numbers are 64-bit floats. There are no separate integer and decimal types.
  • Booleans true and false; the missing value na. Strings in "double" or 'single' quotes. Colours as #rrggbb, #rrggbbaa (with alpha) or the color.* names.
  • Operators: + - * / %, comparison == != < <= > >=, logic && || !, the conditional a ? b : c, and ?? to replace na. +=, -=, *= and /= update a let or state variable.
  • Ranges: 0..<10 counts 0 to 9 and 0..=10 counts 0 to 10. Arrays are [1, 2, 3], records are { high: high, low: low }, and x.length is an array's size.

const cannot be reassigned. let can, within the bar, and starts fresh each bar. state is the only kind that survives to the next bar.

const range = high - low          // a new value every bar
let dir = 0                       // reset to 0 at the start of each bar
if close > open { dir = 1 }
if close < open { dir = -1 }

state streak = 0                  // remembered between bars
streak = dir == 0 ? 0 : (dir == dir[1] ? streak + 1 : 1)

const body = math.abs(close - open)
const pct = range > 0 ? body / range : na   // na when the bar is flat

na spreads: na + 1 is na, and a comparison with na is false. Test with isna(x), or give a fallback with x ?? 0. A history read before the first bar, such as close[1] on bar 0, is na, and so is any ta value until it has enough bars.

Inputs

Inputs become the indicator's settings. Each input.* call must initialise a top-level const, with constant arguments. tab:, group: and inline: lay the settings out; tooltip: explains one.

const len   = input.int(14, "Length", min: 1, max: 200, group: "Signal")
const mult  = input.float(2.0, "Multiplier", step: 0.1, group: "Signal")
const show  = input.bool(true, "Show bands", inline: "bands")
const mode  = input.string("EMA", "Average", options: ["EMA", "SMA"])
const tint  = input.color(#2962ff, "Colour", tab: "Style")
const tf    = input.timeframe("1h", "Higher timeframe")

Saved settings are stored under each input's key: the variable name, or id: when you give one. Keys must be unique. Keep a key and you can rename the title or reorder the inputs without losing anyone's settings; change it and that input goes back to its default.

const len = input.int(14, "Period", id: "length")

input.hide(key, when) takes an input out of the settings dialog when when is true; its saved value still applies. input.preset(key, option, { … }) makes a dropdown option fill in other inputs: picking the option writes the values, inputs it leaves out go back to their defaults, and editing any of them switches the dropdown to its option without a preset. Both are top-level statements. They take an input's key, or its title when no other input shares it, and their arguments must be fixed for the chart: constants, inputs and syminfo, not series.

const style = input.string("Custom", "Style", options: ["Custom", "Fast", "Slow"])
const fastLen = input.int(9, "Fast length", min: 1)
const slowLen = input.int(21, "Slow length", min: 1)
const showSlow = input.bool(true, "Show slow")

input.preset("style", "Fast", { fastLen: 5, slowLen: 13 })
input.preset("style", "Slow", { fastLen: 20, slowLen: 50 })
input.hide("slowLen", !showSlow)

Series and history

open, high, low, close, volume and time hold the current bar, timeClose its close time and barIndex its number from 0. hl2, hlc3 and ohlc4 are the usual averages of the price fields. Any value, including your own, has a history: x[1] is its value one bar ago. ?? replaces na, and isna(x) tests for it.

const change = close - close[1]
const prevHigh = high[1] ?? high
const gapUp = !isna(close[1]) && open > close[1]

Functions in ta keep their own state per call site. Call them on every bar, unconditionally, and use the result conditionally; skipping a call on some bars skips their history too.

Technical analysis

The ta namespace holds the common indicators: moving averages (ema, sma, wma, rma), rsi, atr, stdev, highest, lowest, change, pivotHigh, pivotLow, crossover and crossunder, and dmi, which returns a record. The first argument is the series to measure; the second is the length. Each returns na until it has enough bars.

const basis = ta.sma(close, 20)
const dev = 2 * ta.stdev(close, 20)
const upper = basis + dev
const lower = basis - dev

const rsi = ta.rsi(close, 14)
const range = ta.atr(14)              // atr takes only a length
const channel = ta.highest(high, 50) - ta.lowest(low, 50)

const adx = ta.dmi(14, 14)
const trending = adx.adx > 25 && adx.plus > adx.minus

// a pivot is confirmed 5 bars late: ph is the high from 5 bars ago
const ph = ta.pivotHigh(high, 5, 5)

ta.crossover(a, b) is true on the one bar where a moves from at or below b to above it. Either side can be a number: ta.crossover(rsi, 70). Any series works as the source, including your own: ta.ema(rsi, 9) smooths the RSI.

State across bars

A state variable is initialised once, on the first bar, and keeps its value from one bar to the next. Inside a function, each call site has its own.

state count = 0
state lastCross = na

if ta.crossover(ta.ema(close, 9), ta.ema(close, 21)) {
    count = count + 1
    lastCross = barIndex
}

Lifecycle hooks

on close { … } runs on every closed bar: all of history, then the live bar once, when it closes. It is the place for alerts and logic that must not repaint, and is the same as if bar.isConfirmed { … }. on last { … } runs on the last loaded bar, on every tick while it forms and once more when it closes, and is the same as if bar.isLast { … }; use it for tables and labels.

setup names a value computed once, before the first bar, from literals, constants and inputs. Hooks are top-level only and cannot contain plot(); compute series at the top level and use them inside. A condition goes inside the hook: on last { if showDash { … } }. Inside functions and expressions, where a hook cannot go, keep bar.isConfirmed and bar.isLast. bar.isRealtime is true on the live bar only, so bar.isRealtime && bar.isConfirmed is the moment a live bar closes.

const len = input.int(20, "Length", min: 1)
setup slow = len * 2

state crosses = 0
const avg = ta.sma(close, len)
const crossed = ta.crossover(close, avg)

on close {
    if crossed {
        crosses += 1
        alert("Crossed above the average", freq: "always")
    }
}

on last {
    draw.label(key: "crosses", x: time, y: high, text: "crosses: ${crosses}")
}

plot(avg, title: "Average")
plot(ta.sma(close, slow), title: "Slow average")

Types and arrays

type declares a record; fields may have defaults. Build one by naming its fields. Arrays are written T[] and grow with push.

type Swing {
    price: number
    bar: number
    taken = false
}

state swings: Swing[] = []

const ph = ta.pivotHigh(high, 5, 5)
if !isna(ph) {
    swings.push(Swing(price: ph, bar: barIndex - 5))
    while swings.length > 20 {
        swings.shift()
    }
}

Arrays have methods. Add and remove: push, pop, unshift, shift, insert(index, value), remove(index) and clear(). Read: get(index) (na out of range), first(), last(), includes(value), indexOf(value) (-1 when absent), slice(from?, to?) and copy(). Reorder and fill: sort(), sortDesc() (both in place) and fill(value). Numbers: sum(), avg(), min(), max() and median().

state highs: number[] = []
highs.push(high)
if highs.length > 50 { highs.shift() }        // keep the last 50

const top = highs.max()
const ranked = highs.copy()
ranked.sortDesc()
const second = ranked.get(1)                   // na until there are two
const seen = highs.includes(high)

Control flow

if/else, for over a range or an array (with an optional index), while, break and continue. match picks a value by pattern, with _ as the fallback.

for i in 0..<10 {
    // i = 0 … 9
}
for i, s in swings {
    if s.taken { continue }
}

const label = match mode {
    "EMA" => "Exponential",
    "SMA" => "Simple",
    _ => "Other",
}

Functions

fn declares a function. Parameters are untyped and the result is whatever return gives. Strings interpolate with ${…}.

fn bandWidth(basis, upper, lower) {
    return (upper - lower) / basis * 100
}

const msg = "Width is ${bandWidth(mid, up, dn)}%"

Strings and numbers

Strings join with + and interpolate with ${expr}. The str functions also work as methods, so s.lower() is str.lower(s).

const t = syminfo.ticker.lower()               // "nq1!" from "NQ1!"
const px = str.price(close)                      // formatted to the tick size
const pct = str.fixed((close - close[1]) / close[1] * 100, 2) + "%"
const padded = str.padStart(str.tostring(barIndex), 6, "0")
const n = str.toNumber("12.5") ?? 0              // na when it is not a number

const text = "${t}: ${px} (${pct})"

str.len, upper, trim, substring, contains, startsWith, endsWith and replace do what they say. math has abs, floor, ceil, round(x, decimals), sqrt, pow, log, log10, exp, sign, clamp(x, lo, hi), the constants math.pi and math.e, and min, max, avg and sum over any number of values.

const clipped = math.clamp(rsi, 20, 80)
const mid = math.avg(high, low)
const widest = math.max(high - low, math.abs(high - close[1]), math.abs(low - close[1]))
const tickRounded = math.round(close / syminfo.mintick) * syminfo.mintick

Time and sessions

time is the bar's open and timeClose its close, in epoch milliseconds. time.parts(t, tz?) splits a time into year, month, day, hour, minute, second and weekday (1 is Monday) in a time zone, and time.make(tz, year, month, day, hour?, minute?, second?) goes back. time.day(t, tz?) numbers the local calendar day, which makes day changes easy to spot.

A session is a string such as "0800-1100" in the time zone you pass. session.contains(time, session, tz?) tells you whether a bar falls inside it; input.session lets users pick one. timeframe.seconds() gives the chart's timeframe in seconds, timeframe.changed(tf) is true on the first chart bar of each new tf bar, and timeframe.period is the chart's timeframe as text.

const window = input.session("0200-0500", "Window")
const inWindow = session.contains(time, window, "America/New_York")

const p = time.parts(time, "America/New_York")
const isMonday = p.weekday == 1

state high0 = na
if timeframe.changed("1D") { high0 = high }   // restart on each new day
high0 = math.max(high0 ?? high, high)

barcolor(inWindow ? color.blue : na)          // tint the candles inside the window

syminfo.session is when the market's trading day opens, in minutes after New York midnight (1020 is 17:00). Daily and weekly bars open there, so a script that cares about the day boundary should read it instead of assuming midnight.

Other markets and timeframes

request(market, timeframe, fn) runs fn on another market or timeframe and hands back its value on each chart bar. Inside fn, open, high, low, close, volume, time and every ta function read that other series, not the chart. The result can be a number, a record or any value fn returns.

// the 1h close and the 4h trend, read on a 5m chart
const hourClose = request(syminfo.market, "1h", () => close)
const trend = request(syminfo.market, "4h", () => ta.ema(close, 50) < close ? 1 : -1)

// a correlated market
const es = request(market("ES1!", "cme"), "5m", () => close)

market is syminfo.market for the chart's own symbol, or market(ticker, venue) for another. timeframe is a string such as "5m", "1h" or "1D". Both, and when:, must be fixed: a literal, a constant or an input, never a per-bar value. The call must sit in the script body, not inside a function, a loop or another request.

Choosing the symbol

A market is a ticker plus the venue that quotes it. There are three ways to name one:

  • syminfo.market: the chart's own market. Use it to read the same symbol on another timeframe. syminfo.ticker and syminfo.venue are its parts, as text.
  • market(ticker, venue): a fixed market, such as market("XAGUSD", "oanda"). Ticker and venue are literals, constants or inputs.
  • input.market(ticker, venue, title): a market the user picks in the settings, with the two arguments as the default. Use it for any comparison symbol so people can swap it without editing the script.

Choose between them with a plain ternary, as long as every part is fixed for the chart. A script that compares against a sibling market on the chart's own venue can build it from syminfo.venue.

// the user picks the comparison symbol; the default is silver on OANDA
const peer = input.market("XAGUSD", "oanda", "Compare symbol", group: "Compare")
const useSame = input.bool(false, "Use chart venue", group: "Compare")
const ticker = input.string("XAUUSD", "Ticker", group: "Compare")

const other = useSame ? market(ticker, syminfo.venue) : peer

// keep the settings in step when the chart's own symbol changes
input.syncMarket("Compare symbol", other)

const otherClose = request(other, syminfo.timeframe, () => close)
const spread = close - otherClose

input.syncMarket(title, value) sets the market input with that key (or unique title) to value when the chart instance starts. It is how a script follows the chart's symbol automatically, for example choosing a correlated pair from the symbol being viewed. It is a top-level statement and its market must be fixed.

A market the platform does not carry gives na on every bar, so test the result with isna and keep the plot or label conditional on it.

Choosing the timeframe

A timeframe is a string: a number and a unit. m is minutes, h hours, D days, W weeks and M months, so "5m", "4h", "1D", "1W" and "1M" are all valid. The m and M units differ in case; "1m" is one minute and "1M" is one month. input.timeframe(default, title) lets the user pick one, and syminfo.timeframe and timeframe.period are the chart's own.

  • A timeframe above the chart's is a higher timeframe: each of its bars covers several chart bars. request gives you its value on every chart bar inside it.
  • The same timeframe as the chart works too, and is how you read another market on the chart's own bars.
  • A timeframe below the chart's cannot be read with request; use request.intrabar, which returns every lower bar as an array.

timeframe.seconds(tf?) gives a timeframe's length in seconds, with the chart's as the default. Use it to pick a request timeframe from the chart's, or to hide a request that would read a timeframe at or below the chart's. timeframe.changed(tf) is true on the first chart bar of each new tf bar, which suits resetting state at a daily or weekly boundary without a request.

const htf = input.timeframe("4h", "Trend timeframe", group: "Trend")
const higher = timeframe.seconds(htf) > timeframe.seconds()

// one trend read, only when the chosen timeframe really is higher
const trend = request(syminfo.market, htf, () => ta.ema(close, 50) < close ? 1 : -1,
    when: higher)

// a lookup chosen by the chart's timeframe: fixed for the chart, so allowed
const dayTf = timeframe.seconds() < 3600 ? "1D" : "1W"
const dayRange = request(syminfo.market, dayTf, () => high - low)

plot(trend, title: "Trend", display: "dataWindow")

The result of a request on a daily or weekly timeframe follows the market's own trading day: it opens where syminfo.session says, not at midnight UTC. A symbol on a different venue can have a different day, and each request uses the day of the market it asks for.

What the function can use

The function runs once per bar of the requested series, as though the script were on that market and timeframe. Inside it you can use open, high, low, close, volume, time and every ta function, along with constants, inputs and your own fn helpers. You cannot use the chart's other per-bar values, plots, drawings, alert or barcolor, and it cannot call request. Return what the chart needs: a number, a bool or a record of several values.

// one request, several values: cheaper than one request each
const d = request(syminfo.market, "1D", () => {
    return {
        o: open, h: high, l: low, c: close,
        atr: ta.atr(14),
        up: close > open
    }
})

// plot is top level only, so hide on na with a conditional
plot(!isna(d) ? d.h : na, title: "Day high", color: color.green)
plot(!isna(d) ? d.l : na, title: "Day low", color: color.red)
plot(!isna(d) ? d.c - d.atr : na, title: "Close - ATR", color: color.gray)

A script may use up to 64 distinct request contexts, where a context is one market, timeframe and mode. Calls that share all three share a load. In practice the limit that matters is cost: each context loads its own bars, so prefer one request returning a record over several returning one number each.

Closed or forming bar

A higher-timeframe bar is still forming for most of the chart bars inside it. live chooses which one you see.

  • Left out: history reads the last closed bar, so past bars never change; on the realtime bar the forming bar is read. This is the same as Pine's request.security without lookahead.
  • live: false: always the latest closed bar, on history and in realtime. Nothing repaints.
  • live: true: the forming bar is built from the chart's own bars, on history too. History then shows what the realtime bar would have shown, so a bar inside the period sees the period so far.

when: false skips the request: no data is loaded and the value is na. Tie it to an input so a feature you switched off costs nothing. history: n asks for at least n bars of the requested timeframe, however few the chart has loaded, so a long lookback reads the same on every chart. It is a whole number, up to the compiler's limit.

const showDaily = input.bool(true, "Daily levels")

const daily = request(syminfo.market, "1D", () => { high: high, low: low, open: open },
    live: true, when: showDaily, history: 30)

plot(!isna(daily) ? daily.high : na, title: "Day high")

Lower-timeframe bars: request.intrabar

request.intrabar(market, timeframe, fn, when?, history?) goes the other way. It runs fn on every lower-timeframe bar inside the chart bar and returns the results as an array, one element per lower bar, oldest first. Inside fn, open, high, low, close and volume are the small bar's values. What you get back is whatever fn returns, not the raw candle: return the fields you need.

// every 1m bar inside each chart candle
const bars = request.intrabar(syminfo.market, "1m", () => {
    return { o: open, h: high, l: low, c: close, v: volume }
})

// volume delta: each 1m bar splits its volume by where it closed in its own range
const ltf = request.intrabar(syminfo.market, "1m", () => {
    const rng = high - low
    return { d: rng > 0 ? volume * ((close - low) - (high - close)) / rng : 0 }
})

let delta = na
if !isna(ltf) && ltf.length > 0 {
    delta = 0
    for b in ltf {
        delta += b.d
    }
}
  • A bar with no lower-timeframe data gives na or an empty array, so test !isna(arr) && arr.length > 0 before reading it.
  • The timeframe should be shorter than the chart's. A coarser one reaches further back but is less precise; pick it from the chart timeframe, for example timeframe.seconds() < 86400 ? "1m" : "1h".
  • when: and history: work as in request. history: n loads at least n lower bars, so a deep chart is not limited to what the host fetched by default.
  • Keep fn small. It runs once per lower bar for every chart bar, so a 1m request on a daily chart runs it about 1,440 times a bar.

Rules and cost

  • Requests are declared once per script instance. Two requests for the same market and timeframe share one data load, and it is sized to the largest history: among them.
  • A request cannot see another request, so the function passed in cannot call request itself. Compute on the chart and pass the result in instead.
  • Every request loads another series. Use when: to switch off the ones you do not need, and prefer one request returning a record over several returning one number each.

Plots and colours

plot(value, title:, color:, width:, style:, display:) draws one value per bar. It must sit at the top level, not inside an if, a loop or a function. To hide a value on some bars, plot cond ? value : na. style is "line", "dashed", "dotted", "step", "area" or "histogram". display: "dataWindow" keeps the value in the data window without drawing it, and "hidden" does neither.

plot returns a handle. Pass two handles to fill(a, b, color:) to shade between them. barcolor(color) recolours the candles on the price chart; an na colour leaves a candle as it was.

const up = plot(upper, title: "Upper", color: color.teal)
const dn = plot(lower, title: "Lower", color: color.teal)
fill(up, dn, color: color.new(color.teal, 85))

plot(rsi > 70 ? rsi : na, title: "Overbought", style: "histogram", color: color.red)
barcolor(close > upper ? color.lime : close < lower ? color.red : na)

Colours are #rrggbb or #rrggbbaa literals, the named colours (color.red, green, blue, orange, yellow, purple, teal, aqua, lime, fuchsia, maroon, navy, olive, silver, gray, white, black), or color.rgb(r, g, b, transp?). color.new(c, transp) makes a copy with transparency from 0 (solid) to 100 (invisible). color.r, color.g, color.b and color.transp read a colour back. chart.bg and chart.fg are the chart's own background and text colours, so a drawing can follow the light or dark theme.

Drawings

The draw namespace places objects at prices and times instead of per bar: draw.box, draw.line, draw.label and draw.table. They take named arguments only and may appear anywhere, including inside on last and loops. Place a point by time (x, left, right, x1, x2) or by bar index (bar, leftBar, rightBar, bar1, bar2).

key: names an object. Call again with the same key and the existing object moves or changes instead of a new one being added, which is how you keep one box stretching to the current bar. group: ties objects together, and pane: "price" draws on the price pane even when the indicator has a pane of its own. A label's anchor: is "up", "down", "left", "right" or "center", the side of the point it sits on.

// one box that keeps growing to the right while its range holds
const hi = ta.highest(high, 20)
const lo = ta.lowest(low, 20)

draw.box(key: "range", leftBar: barIndex - 20, rightBar: barIndex,
    top: hi, bottom: lo,
    fill: color.new(color.blue, 90), border: color.blue, width: 1)

draw.line(key: "mid", bar1: barIndex - 20, y1: (hi + lo) / 2,
    bar2: barIndex, y2: (hi + lo) / 2, color: color.gray, style: "dashed")

draw.label(key: "tag", x: time, y: hi, text: "20-bar high ${str.price(hi)}",
    anchor: "up", bg: color.navy, textColor: color.white,
    tooltip: "Highest high of the last 20 bars")

Labels can be pinned to a pane edge with pin: "left" or "right", shaped as a bubble with shape: "circle" and size:, and given an arrow to their point with pointer: true. tooltip: shows a popup while the pointer is over a box or label. Boxes take text:, textColor:, textSize:, hAlign: and vAlign: to write inside the box.

draw.table(key:, position:) returns a table; fill it with t.cell(column, row, text, color:, bg:, align:). Draw it in on last so it is built once, on the bar you are looking at.

on last {
    const t = draw.table(key: "stats", position: "topRight", bg: color.new(color.black, 30))
    t.cell(0, 0, "RSI", color: color.gray, align: "left")
    t.cell(1, 0, str.fixed(rsi, 1), color: color.white, align: "right")
    t.cell(0, 1, "ATR", color: color.gray, align: "left")
    t.cell(1, 1, str.price(range), color: color.white, align: "right")
}

Alerts

alert(message, freq:) fires on live bars only; history never triggers one. freq controls how often: "barClose" (the default) once when the bar closes, "bar" once per bar the first time it is true, "always" on every update. Put alerts in on close when a signal must not repaint. The message can interpolate any value, and the user turns it into a chart alert from the indicator's menu, with its delivery channels.

const fast = ta.ema(close, 9)
const slow = ta.ema(close, 21)

on close {
    if ta.crossover(fast, slow) {
        alert("${syminfo.ticker} ${syminfo.timeframe}: fast crossed above slow at ${str.price(close)}")
    }
    if ta.crossunder(fast, slow) {
        alert("${syminfo.ticker}: fast crossed below slow")
    }
}

Common mistakes

  • Calling a ta function inside an if. It skips that bar's history. Compute it at the top level, then use the result inside.
  • Using let to remember something. It resets every bar. Use state.
  • Reading close[1] and expecting a number on the first bar. It is na; add ?? close or test isna.
  • Putting plot inside a condition. Plot cond ? value : na instead.
  • Using a pivot the bar it appears. ta.pivotHigh(high, 5, 5) is only known 5 bars later, and it reports the value from then. Plot it with that offset in mind, and do not trade on it as if it were live.
  • Expecting a signal on a forming bar to hold. Anything that reads close on the live bar changes with every tick. Gate it with bar.isConfirmed, or use on close.
  • Using a per-bar value for market, timeframe, when or an input.* argument. These must be fixed for the chart.

The editor

  • Open it from the chart's top bar. It docks at the right edge; drag its left edge to resize, or open it as a window from its ⋯ menu.
  • Each script gets a tab. Unsaved edits are kept in this browser until you save or close the tab.
  • Completion lists builtins with their signatures; hover a builtin for its doc. Compile errors and warnings are underlined as you type.
  • Mod-S saves and Mod-Enter saves and runs on the active chart. Profile times every line over the chart's bars.

Reference

Every builtin, generated from the compiler.

Ready to write one? Open the charts and choose the FlowScript editor in the top bar.