Cyclic lines
Description
Задаёт графическому объекту тип «Циклические линии» (CycleLines)
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.CycleLines, objectName)
// Set the coordinates of the first vertical line and the beginning of the trend line
.setTime1(Time[24])
.setPrice1(High[24])
// Set the coordinates of the first vertical line and the end of the trend line
.setTime2(Time[20])
.setPrice2(High[20])
// Let's set the color
.setColor(Color.Crimson)
}