GObject.Type.FiboChannel

Fibonacci Channel

Description

Задаёт графическому объекту тип «Канал Фибоначчи» (FiboChannel)

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.FiboChannel, objectName)
         // Let's set the parameters of the first line
         .setTime1(Time[22])
         .setPrice1(High[22])
         .setTime2(Time[10])
         .setPrice2(High[10])
         // Let's set the coordinates of the initial location of the second line 
         .setTime3(Time[22])
         .setPrice3(Low[22])
         // set the color
         .setColor(Color.Crimson)
}