ChartnautDocs

CreateRunRequest

object
scriptstring · ScriptRef

slug or slug@N for your own scripts; author/slug or author/slug@N for library scripts; chartnaut/slug for built-ins (which always run their latest version).

Examples vwap-reclaim vwap-reclaim@3 jane/orb-breakout@7 chartnaut/rsi
sourceobject · ScriptSource
Show fields
kindstring · ScriptKindRequired
One of indicator definition study
filesarray of object · ScriptFileRequired
At least 1 items
Show item fields
pathstringRequired
Example main.ts
codestringRequired
entryboolean

Exactly one file is the entry. Indicators have one file, always the entry.

instrumentstringRequired

Canonical or short symbol.

Example BTC
timeframestring · TimeframeRequired
One of 1m 5m 15m 30m 1h 2h 4h 1d 1w 1mo
windowobject · WindowRequired

Exactly one of {from,to}, last or bars. Warmup is fetched before the window automatically and never counted in results. Clamped to the plan's historical depth.

Show fields
fromstring (date-time)
tostring (date-time)

Defaults to now.

laststring
Pattern ^[0-9]+[dwmy]$Example 90d
barsinteger
At least 1Example 2000
settingsobject

Overrides; anything omitted uses the script's default.

studyobject

Study only.

Show fields
event_filterobject

Restrict to events matching these payload values.

waitinteger

Seconds to block for completion.

Default 00 to 30
labelstring

Free text, shown in the app.

One of

Option 1any
Option 2any

Used by#