Save a script
The app saves a script on your account.
Details#
Save BullScript™ as one of the member's scripts (a new version when script is set). Example: name Average, code the indicator. A save that does not compile still stores the version but answers as an error (script_saved_not_compiling) with errors (line, column, message); fix and save again. Names that contain Money Line or Bullmania in any spelling are reserved for Bullmania and are refused with script_name_reserved; choose a different name.
Inputs#
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Script name. |
| code | string | Required | BullScript™ source. |
| script | string | Optional | Optional id of a script of theirs to add a version to. |
| expected_version | string | Optional | Optional. The version you read; the save is refused if the script has changed since. |