Calculates the Standard Deviation indicator and returns its value.
await Indicators.StdDev(symbol:string, timeframe:string, maPeriod:int, maShift:int, maMethod:int, appliedPrice:int, priceType:int)
Parameters
| Name |
Type |
Действие |
Значение по умолчанию |
| symbol |
string |
Symbol name on the data of which the indicator will be calculated. null means the current symbol. |
— |
| timeframe |
string |
TimeFrame. It can be any of TimeFrame enumeration values. 0 means the current chart timeframe. |
— |
| maPeriod |
int |
Moving Average period. |
— |
| maShift |
int |
Moving Average shift. |
— |
| maMethod |
int |
Moving Average method. It can be any of Averaging enumeration values. |
— |
| appliedPrice |
int |
Applied price. It can be any of AppliedPrice enumeration values. |
— |
| priceType |
int |
Price type |
— |
Return value
Numerical values of the Standard Deviation indicator.
Example
let list = await Indicator.StdDev(null, 0, 10, 0, Averaging.Exponential, AppliedPrice.Close, PriceType.Bid);