chart.Point
圖表上的一個點(指數、時間、價格)。
種類: object
欄位
| 名稱 | 類型 | 說明 |
|---|---|---|
index | int | 點的 x 座標,表示為 bar 索引值。 |
time | int | 該點的 x 座標,表示為 UNIX 時間戳(以毫秒為單位)。 |
price | float | 點的 y 座標。 |
靜態方法
from_index
navi
Point.from_index(index: int, price: float): PointReturns a chart.Point object at the specified bar index and price.
參數
| 名稱 | 類型 | 預設值 | 說明 |
|---|---|---|---|
index | int | ||
price | float |
返回: Point
from_time
navi
Point.from_time(time: int, price: float): Point傳回具有指定時間和價格的 chart.point 對象。
參數
| 名稱 | 類型 | 預設值 | 說明 |
|---|---|---|---|
time | int | ||
price | float |
返回: Point
now
navi
Point.now(price: float = close): Point傳回一個 chart.point 對象,其中價格為 y 座標。
參數
| 名稱 | 類型 | 預設值 | 說明 |
|---|---|---|---|
price | float | close |
返回: Point