Save a script

save_scriptChanges the chart

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#

NameTypeRequiredDescription
namestringRequiredScript name.
codestringRequiredBullScript™ source.
scriptstringOptionalOptional id of a script of theirs to add a version to.
expected_versionstringOptionalOptional. The version you read; the save is refused if the script has changed since.