mScript

The base class for all scripts. All classes of Indicators and Trading Bot are inherited from it.

Elements

function
addBuffer Initializes an object that will be used to store indicator values
addInput Adds variables used in the script
addLevel Sets the value of the specified horizontal level of the indicator displayed in a separate window.
comment Prints messages to the console
createObject Creates a graphic item for the indicator
getInputs Returns the variables specified by the method addInput
getObject Searches for an object by name
onDestroy Method for clearing memory
onInit The method in which the properties for the created objects are set via mScript.addBuffer
print Outputting a message to the console
setProperty Sets properties for the indicator