Indicators.Force()

計算力指數指標並返回其值。
await Indicators.Force(symbol:string, timeframe:string, period:int, maMethod:int, appliedPrice:int, priceType:int)

Parameters

Name Type Действие Значение по умолчанию
symbol string 將計算指標的數據上的交易品種名稱。 null 表示當前符號。
timeframe string 大體時間。 它可以是任何 TimeFrame 枚舉值。 0 表示當前圖表時間範圍。
period int 平均週期。
maMethod int -
appliedPrice int 適用價格。 它可以是任何 AppliedPrice 枚舉值。
priceType int Price type

Return value

力指數指標的數值。

Example

let list = await Indicator.Force(null, 0, 13, Averaging.Simple, AppliedPrice.Close, PriceType.Bid);