GObject.Type.AndrewsPitchfork

Вилы Эндрюса

Description

將類型“ Andrews Pitchfork”設置為圖形對象 (AndrewsPitchfork)

Example

// 讓我們設置對象的名稱
let objectName = "OurObject";
// 檢查是否存在相同名稱的對象
let newObject = this.getObject(objectName);
// 如果它不存在,則創建它並設置其屬性
if (!newObject) {
     newObject = this.createObject(GObject.Type.AndrewsPitchfork, objectName)
         // 設置第1行開始處的坐標
         .setTime1(Time[21])
         .setPrice1(Low[21])
         // 設置第2行開始處的坐標
         .setTime2(Time[36])
         .setPrice2(High[36])
         // 設置中線起點的坐標
         .setTime3(Time[67])
         .setPrice3(Low[67])
         // 設置顏色
         .setColor(Color.Crimson)
}