// 讓我們設置對象的名稱 let objectName = "OurObject"; // 檢查是否存在相同名稱的對象 let newObject = this.getObject(objectName); // 如果它不存在,則創建它並設置其屬性 if (!newObject) { newObject = this.createObject(GObject.Type.ArrowCheck, objectName) // 讓我們設置對象錨定到圖表的坐標: .setTime1(Time[2]) .setPrice1(High[2]) // 設置對象的大小 .setWidth(3) // 讓我們設置顏色 .setColor(Color.Crimson) }