Parallel Lines
Description
Задаёт графическому объекту тип «Параллельные Линии» (ParallelLines)
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.ParallelLines, objectName)
// set the coordinates of point 1 of line 1
.setTime1(Time[49])
.setPrice1(High[49])
// зададим координаты точки 2 линии 1
.setTime2(Time[18])
.setPrice2(High[18])
// зададим координаты точки, через которую проводится вторая линия,
// параллельно первой
.setTime3(Time[11])
.setPrice3(Low[11])
// зададим цвет
.setColor(Color.Crimson);
}