Write an indicator in Assay, in Python, or in any language through the SDK — and find it in the menu under My indicators.
01Three ways
| Way | You write | It runs |
|---|---|---|
| Assay | a script — a script beginning //@version=5 or 6 runs as it is | inside Bentrix, on every chart |
| Python | a function decorated @bentrix.study | in your Python, called by Bentrix bar by bar |
| A program | anything, in any of the SDK's nine languages | in your program, which hands Bentrix its values |
02My indicators
Your scripts live in your indicators folder and show in the indicator menu under My indicators. Settings › Indicators lists them, the Python interpreter Bentrix found, and Run my scripts. A script you did not write yourself — one an AI assistant installed — waits for your tick in Settings › Indicators before it runs.
03Assay
Assay is Bentrix's script language; the Assay section is the guide and the reference. Open the Assay IDE from the Assay button on the application's bar, New Assay script in the menu, or a script's pencil under My indicators. A script that draws lines, labels, boxes and tables draws them in its own pane, on every chart type.
04Python
A Python study is a function the SDK's @bentrix.study declares, with its lines and inputs. Bentrix runs it in your own Python (3.9 or later), handing it only the bars up to the clock — so a Python study cannot see the future either. See the Python SDK.
05Any language
A program declares a study, attaches it, computes its values and hands them over — the SDK's your own indicator guide does it step by step, in all nine languages.
06Like any indicator
An indicator of your own has the same settings card, legend, alerts and Calculate on, and a timeframe of its own, on every chart type. Up to 64 lines.