GObject.Type.Arrow

Symbol

Description

Задаёт графическому объекту тип «Символ» (Arrow) по заданному коду

Example

//set the name of the object
let objectName = "MyArrowObject",
// and check if an object with the same name already exists
OurObject = this.getObject(objectName);
// If the object is not found, then create an object of the Symbol type - GObject.Type.Arrow:
// and set its properties
if (!OurObject) {
     OurObject = this.createObject(GObject.Type.Arrow, objectName)
         // Set the arrow symbol ArrowUpWhite
         .setArrowCode(ArrowSymbols.ArrowUpWhite)
         // Let's set the color Magenta
         .setColor(Color.Magenta)
         // Let's set the coordinates of the arrow
         .setTime(Time[1])
         .setPrice(High[1])
         // Set its size
         .setWidth(3)
}