Skip to content

chart.Point

圖表上的一個點(指數、時間、價格)。

種類: object

欄位

名稱類型說明
indexint點的 x 座標,表示為 bar 索引值。
timeint該點的 x 座標,表示為 UNIX 時間戳(以毫秒為單位)。
pricefloat點的 y 座標。

靜態方法

from_index

navi
Point.from_index(index: int, price: float): Point

Returns a chart.Point object at the specified bar index and price.

參數

名稱類型預設值說明
indexint
pricefloat

返回: Point


from_time

navi
Point.from_time(time: int, price: float): Point

傳回具有指定時間和價格的 chart.point 對象。

參數

名稱類型預設值說明
timeint
pricefloat

返回: Point


now

navi
Point.now(price: float = close): Point

傳回一個 chart.point 對象,其中價格為 y 座標。

參數

名稱類型預設值說明
pricefloatclose

返回: Point

基於 MIT 許可證發佈。