furgeDocs
Scripts

Script runs and output

Read metrics, logs, saved source and artifacts.

Open a run

Open a script and select a backtest or deployment from its run panel. You can open the job page for the full run details.

Check the run type before interpreting results. A historical backtest and a live deployment use different data and execution conditions.

Results

A script can return a metrics dictionary. Results display those values as the script processes records.

For the candle-monitor example, a result looks like this:

{
  "close": 61250.0
}

The number above is illustrative. A metric is whatever the script returns; it is not automatically a verified trading profit.

Logs

Use Logs for print() output, runtime messages and errors. When a script fails, read the error and the saved source revision for that run.

Changing the editor does not change the source used by an existing run. Stop it and deploy the intended revision when you want to run new code.

Artifacts

Artifacts are files explicitly written by the script. A script that only returns metrics may have no artifacts.

Stop a live script

Use the stop control on its job page. Closing the editor or signing out does not stop it.

Stopping a script prevents further script execution. It does not automatically close positions, undo confirmed swaps or cancel every resting order the script placed. Inspect account activity after stopping a trading script.

For source subscriptions, dynamic data, execution callbacks and record schemas, open the scripting reference.

On this page