Overview
Most of the scripting API is the same whether you write an indicator or a definition: reading price, declaring settings, drawing on the chart, reading other indicators, other timeframes, sessions, limits and lint. This section covers those shared pieces.
An indicator and a definition run on the same per-bar runtime, so every ctx field on these pages exists on both. A study runs once per event instead, and has its own versions of a few of them. The Indicator, Definition and Study sections cover only what each type adds.
Pages in this section
Page | Indicator | Definition | Study |
|---|---|---|---|
yes | yes | candle helpers instead | |
yes | yes | no, use | |
yes | yes | no | |
yes | yes | yes | |
yes | yes | yes | |
yes | yes | annotation helpers | |
yes | yes | reads only | |
yes | yes |
| |
yes | yes | no | |
yes | yes | own helpers | |
yes | yes | yes | |
yes | yes | yes |
What Chartnaut promises about these APIs, such as the same value on every chart and on the server, is on What Chartnaut guarantees.
Documented under each script type
Topic | Page |
|---|---|
| |
| |
|
