Internal Fork
Description
Sets the type "Internal Pitchfork" to a graphic object (InsidePitchfork)
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.InsidePitchfork, objectName)
// set the coordinates of the beginning of line 1
.setTime1(Time[55])
.setPrice1(Low[55])
// зададим координаты конца линии 1
.setTime2(Time[18])
.setPrice2(High[18])
// зададим координаты конца линии 2
.setTime3(Time[71])
.setPrice3(High[71])
// зададим цвет
.setColor(Color.Crimson);
}