Modified Schiff's Pitchfork
Description
Задаёт графическому объекту тип «Модифицированные Вилы Шиффа» (ModifiedSchiffPitchfork)
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.ModifiedSchiffPitchfork, objectName)
// set the coordinates of the beginning of line 1
.setTime1(Time[18])
.setPrice1(High[18])
// зададим координаты конца линии 1
.setTime2(Time[11])
.setPrice2(Low[11])
// зададим координаты начала линии 2
.setTime3(Time[38])
.setPrice3(Low[38])
// зададим цвет
.setColor(Color.Crimson);
}