Вилы Эндрюса
Description
Sets the type "Andrews' Pitchfork" to a graphic object (AndrewsPitchfork)
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.AndrewsPitchfork, objectName)
// set the coordinates of the beginning of line 1
.setTime1(Time[21])
.setPrice1(Low[21])
// set the coordinates of the beginning of line 2
.setTime2(Time[36])
.setPrice2(High[36])
// set the coordinates of the beginning of the Midline
.setTime3(Time[67])
.setPrice3(Low[67])
// set the color
.setColor(Color.Crimson)
}