GObject.Type.ArrowDown

Arrow to down

Description

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

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.ArrowDown, objectName)
         // Let's set the coordinates of the arrow anchor to the chart:
         .setTime1(Time[2])
         .setPrice1(High[2])
         // Set the size of the arrow
         .setWidth(3)
         // Let's set its color
         .setColor(Color.Crimson)
}