Assay is Bentrix’s script language: write your own indicator or strategy as a short text, and Bentrix runs it on the chart bar by bar, like a built-in study. A script written in the widely used charting dialect — beginning //@version=5 or 6 — opens and runs as it is.
- What Assay isBentrix's script language — an indicator or a strategy as a short text, run bar by bar on the chart. Scripts of the widely used charting dialect open and run as they are.
- Your first scriptA whole indicator — two averages, the space between them filled, a mark where they cross — written, run and changed, line by line.
- The languageValues and series, the history operator, var and varip, operators, if, switch and loops, functions and methods, tuples, types and enums.
- Inputs and outputA script's settings, and everything it draws — lines, levels, fills, marks, background and bar colours — with alerts.
- Drawing objectsLines, labels, boxes, tables, fills between lines and polylines — made, moved and deleted by a script, drawn by Bentrix in the study's pane.
- Other timeframes and marketsrequest.security — a higher timeframe of the chart's market, or another market of the workbench — and the other request functions, with the look-ahead rule.
- Strategy scriptsA script that declares strategy(…) places orders — entries, exits, stops, targets — and runs on Bentrix's strategy engine, on a workbench whose account decides the money.
- Versions, libraries and limitsVersions 1 to 6 and converting between them, libraries and import from your own folder, and the limits every script runs within.
- The IDEThe Assay IDE — a one-row header, the left rail, the code editor, completion and hover, the live preview on the chart in front, run and inspect, stops, the status row and its drawer, history.
- The graphAny Assay script as wired blocks — the seven colours of the blocks, a block's parts, the ladder, the building blocks, the Inspector, and the board as a node canvas with curved wires.
- The referenceAll 509 built-ins by namespace: each signature, what it computes, and whether Bentrix runs it.