GObject.Type.ArrowUp

Up Arrow Symbol

Description

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

Example

// Let's set the name of the object
let objectName = "OurObject";
// check if an object with the same name already exists 
let newObject = this.getObject(objectName);
// if it doesn't exist, then create it and set its properties
if (!newObject) {
     newObject = this.createObject(GObject.Type.ArrowUp, objectName)
         // Let's set the coordinates of the arrow anchor to the chart:
         .setTime1(Time[2])
         .setPrice1(High[2])
         // Let's set the size of the arrow
         .setWidth(3)
         // Let's set its color
         .setColor(Color.Crimson);
}