ChartnautDocs

Examples

Three complete definition scripts, simplest first. Each marks setups as events. Measuring what happens after them is the job of a study.

In code the API word is flow (kind: "flow"). In the app the noun is always definition.

#

Example

Teaches

1

Bull bar

events.declare, the required label, a one-line condition, no state

2

EMA cross

indicators.declare, reading the previous value with .at(1)

3

Session OR break

ctx.session, state in ctx.accum with warmup, oncePer per session

To build one step by step, follow the First definition guide.