GObject.Type.GannFan

Fan Gann

Description

Sets the type of Gann Fan to a graphic object (GannFan)

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.GannFan, objectName)
         // Let's set the parameters of the line
         // First point
         .setTime1(Time[115])
         .setPrice1(High[115])
         // The second
         .setTime2(Time[100])
         .setPrice2(High[100]);
}