Horizontal line
Description
Sets the type "Horizontal line" (hLine) to a graphic object
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.hLine, objectName)
// set the point through which we want to draw the line
.setPrice2(High[1])
// set the desired line color
.setColor(Color.Crimson);
}